Color Converter
Convert between HEX, RGB, and HSL — type in any box and the other two update instantly.
Converted locally. Your color never leaves your browser.
Common questions
Does this support transparency (alpha channel, RGBA, or HSLA)?
No — this tool only handles fully opaque colors. 4-digit and 8-digit hex, rgba(), and hsla() are all explicitly rejected rather than silently dropping the transparency value.
Why doesn't converting HEX → HSL → HEX always give back the exact same value?
Because HSL values are rounded to whole numbers for display, matching how HSL is conventionally written (e.g. hsl(210, 40%, 50%)). Round-tripping through HSL can land within 1 unit of the original, rather than being bit-for-bit identical — that's expected rounding, not a bug.
Can I enter a hue over 360, or a negative hue?
Yes — hue wraps around a circle, so 370° and −10° are both accepted and treated the same as 10°. Saturation and lightness don't wrap, though: those must be between 0% and 100% or the input is rejected.