HEX / RGB / HSL Color Converter
Convert any CSS color between HEX (#2563EB), RGB (37, 99, 235), and HSL (221°, 83%, 53%) live with swatch preview and one-click copy.
Switch Effortlessly Between Design Tokens in HEX, RGB & HSL
Figma specs export HEX, Canvas/WebGL shaders expect RGB channels, and modern dark-mode CSS palettes rely on HSL lightness adjustments so hover states stay perceptually balanced. Type into the HEX or RGB fields or pick a shade visually to synchronize all three formats instantaneously. Check foreground/background accessibility next in WCAG 2.1 Color Contrast Checker or build smooth backdrops in CSS Gradient Generator.
Why HSL Makes Dark-Mode & Hover Palettes Effortless
Darkening a button on hover in HEX (#2563EB → #1D4ED8) requires guessing across three RGB channels, whereas in HSL you simply keep Hue (221°) and Saturation constant and drop Lightness by 8%—producing consistent, predictable component states across an entire design system.
Frequently Asked Questions
- What does 8-digit HEX (#2563EB80) mean?
- The final two hex digits encode alpha opacity from 00 (0% transparent) to FF (100% opaque).
- Can I type shorthand 3-digit HEX or RGB strings?
- Enter standard 6-digit HEX codes or rgb(r, g, b) values to keep all three formats synchronized live.
- How do I verify accessibility of my chosen color pair?
- Paste your foreground and background HEX values straight into our WCAG 2.1 Color Contrast Checker.
Why HSL Makes Dark-Mode Design Systems Easier
With HEX or RGB, creating a 10% darker hover state requires guessing three channels at once. In HSL, simply keeping Hue and Saturation constant while lowering Lightness by 6%–10% generates cohesive hover, border, and disabled states across your entire design system.