Hex, RGB, and HSL as notations
The color tool accepts a 3- or 6-digit sRGB hex value and prints RGB channel bytes, an HSL triple, and copy-friendly CSS snippets. Conversion changes notation, not the intended opaque color in sRGB. HSL can help you explore hue, saturation, and lightness, but equal HSL lightness does not guarantee equal perceived brightness across hues.
Useful scenarios
- Turning a hex token into
rgb()for a legacy stylesheet. - Reading HSL before nudging lightness for a hover state.
- Sharing multiple notations in a design handoff note.
- Checking that a short hex like
#2a4expands as expected. - Comparing two brand samples written in different notations.
Rules on this page
Inputs may include a leading #. Three-digit hex expands by duplicating each digit. Invalid characters produce an error instead of a guess. Output HSL uses degrees and percentages suitable for CSS-like reading; always re-check contrast after you edit lightness because notation conversion alone does not improve readability.
Worked example
Input: #2464b7 RGB sketch: rgb(36, 100, 183) HSL: hue near blue, with saturation and lightness derived from those channels
Input #fff expands to #ffffff. If you paste 2464b7 without a hash, the tool still accepts the hex digits when they form a valid 6-digit value as implemented on the form.
Common mistakes
- Assuming HSL lightness matches WCAG relative luminance.
- Editing HSL and forgetting to re-run contrast against real backgrounds.
- Mixing Display P3 or other wide-gamut values into an sRGB-only converter.
- Treating conversion as proof that a brand color is accessible.
Limits
Opaque sRGB hex only—no alpha, no CMYK, no spot colors. Convenience conversion for interface work, not a color-managed production pipeline.
Why offer HSL at all?
It is a practical dial for exploration even though perception is more complex than HSL suggests.
Does this change the color profile?
No. It rewrites the same sRGB triple in other spellings.
Need a correction?
Send the hex and the channels you expected via contact.

