What it does
Enter a color in HEX (#2271b1 or the short form #abc), RGB (rgb(34, 113, 177)) or HSL (hsl(205, 68%, 41%)) and the tool returns all three formats at once, with a live swatch so you can see the result. The native color picker beside the field works the same way — picking a color fills the text box and converts it.
How it works
Whatever you paste is parsed into red, green and blue channels first. HEX is read directly; HSL is converted to RGB with the standard chroma formula. From that RGB triple the tool derives the HSL values. So every format you see is computed from the same underlying color. RGB channels are whole numbers from 0 to 255, HSL hue is a whole number of degrees and saturation and lightness are whole percentages.
Gotchas
- Alpha is ignored.
rgba(0,0,0,0.5)is read asrgb(0,0,0)and no transparency is carried through. - Because HSL is rounded to integers, converting HEX → HSL → HEX can shift by one step per channel. This is rounding, not a bug, and is not visible to the eye.
- Out-of-range values are clamped: an RGB channel above
255becomes255.
Worked example
Paste hsl(205, 68%, 41%) and you get #2271b1 and rgb(34, 113, 177) back — handy when a design tool gives you HSL but your CSS variables are hex. To check whether a foreground and background pair meets WCAG contrast, try the Contrast Checker; to turn a color name into a URL-safe string use the Slug tool.
Privacy
Conversion is local; nothing is uploaded.