What the results show
- HEX — the six-digit hexadecimal code (e.g.
#4F46E5) used in CSS, design tools, and most style guides. Two digits each for red, green, and blue. - RGB — the same color as three 0–255 channels, e.g.
rgb(79, 70, 229). Handy for CSS, canvas, and code that works in decimal. - HSL — hue, saturation, and lightness, e.g.
hsl(245, 76%, 59%). The most intuitive model for tweaking a color: spin the hue, or nudge lightness for a tint or shade.
How it works
Pick a color from the swatch or type any 3- or 6-digit hex code. A 3-digit shorthand such as #abc is expanded to its full form (#aabbcc) before conversion. The hex is split into its red, green, and blue bytes to get the RGB values.
The HSL values come from normalizing each channel to 0–1, then deriving lightness from the midpoint of the brightest and darkest channel, saturation from their spread, and hue from which channel leads. The label shown on the preview swatch flips between black and white automatically using the WCAG relative-luminance formula, so it stays readable on any background.
Frequently asked questions
Is anything I pick uploaded or saved?
What's the difference between HEX, RGB, and HSL?
Can I type a short hex like #abc?
#abc becomes #aabbcc. The leading # is optional, and case doesn't matter.How do I copy a value?
Why does it show a dash or a message instead of colors?
#4f46e5) and the values appear instantly.Are the values suitable for CSS?
rgb(…), and hsl(…) are all valid CSS color syntaxes and can be pasted directly into stylesheets or inline styles.