Color Converter

Convert HEX, RGB, RGBA, and HSL values for CSS and design tokens. Free browser-based color helper.

Tool input stays in your browser. The site may use cookies for ads.
HEX
#14B8A6
RGB
rgb(20, 184, 166)
RGBA
rgba(20, 184, 166, 1)
HSL
hsl(173, 80%, 40%)
CSS Variable
--color: #14b8a6;
Tailwind
bg-[#14b8a6]
Luminance:52.1%
Best text:Black

Color Palette

Convert design tokens

Move between HEX, RGB/RGBA, and HSL when translating Figma tokens to Tailwind theme variables or debugging alpha stacking in UI panels.

Same color, three notations

HEX:  #3b82f6
RGB:  rgb(59, 130, 246)
HSL:  hsl(217, 91%, 60%)

Pitfall: 3-digit HEX shorthand

#RGB expands each nibble (#3b8 → #33bb88), not #3b82f6. Double-check shorthand when copy-pasting from older stylesheets.

Frequently Asked Questions

HEX vs RGBA?

HEX is compact for CSS (#RRGGBB). RGBA adds an explicit alpha channel for overlays and glass effects.

Why does HSL look different across browsers?

Wide-gamut displays and color-space CSS can shift perceived color. For brand-critical work, validate on target devices.

Related Tools