Examples
-
Hex
#5eead4 -
rgb()
rgb(94, 234, 212) -
hsl()
hsl(174, 70%, 60%)
About Color Converter
A designer hands you a hex code, a design system exports HSL for easier lightness tweaks, and a canvas API wants RGB integers - the same color, three different notations, and converting between them by hand means either doing the math or reaching for a color picker just to read one value back out.
Paste a color in any of the three formats - hex, rgb(), or hsl() - and get all three back at once, converted exactly rather than approximated.
HSL is often the easiest to reason about when adjusting a color deliberately: keep hue and saturation fixed and only move lightness to get a consistent tint or shade ladder, which is awkward to do directly in hex or RGB.
FAQ
- Does it support alpha/transparency (rgba, hsla, #rrggbbaa)?
- Not currently - this focuses on solid colors in hex, rgb(), and hsl(). Strip the alpha channel before converting if your source includes one.
- Why do the RGB and hex values sometimes round differently than expected?
- HSL to RGB conversion involves floating-point math that gets rounded to the nearest integer byte value, so round-tripping hex → HSL → hex can occasionally shift a value by 1 - this is normal floating-point rounding, not a bug.