Color Converter
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Inputs
Any CSS color: #ff6347, rgb(255 99 71), hsl(9 100% 64%), oklch(0.7 0.2 32) or a name like tomato.
Results
That isn't a color this tool can read. Try a hex code such as #ff6347.
- HEX
— - RGB
— - HSL
— - HWB
— - OKLCH
— - OKLab
— - CMYK
—
- CSS color name
- —
- Contrast with white
- —
- Contrast with black
- —
- Text on this color
- —
Your input is too long to share as a link, so the page address no longer includes it.
The same color can be written many ways in CSS and design tools: a hex code, RGB numbers, hue-saturation-lightness, or OKLCH, the newer notation whose lightness matches what eyes see. Type or pick a color and copy it in the notation you need.
How to use it
- Type a color in any notation, or click the swatch to pick one.
- Copy it as HEX, RGB, HSL, HWB, OKLCH, OKLab or CMYK.
- Check the closest CSS name and which text color reads better on it.
Example: #ff6347 is rgb(255 99 71), hsl(9.1 100% 63.9%) and oklch(0.6962 0.1955 32.32), the CSS color named tomato. White text on it only reaches about 2.9 : 1, so black text reads better.
Questions and answers
What is OKLCH, and why use it?
OKLCH describes a color by lightness, chroma (how colorful) and hue, in a space designed so equal steps look equally different. Changing only L makes a color lighter or darker without its hue drifting, which HSL can’t promise. All current browsers support oklch() in CSS.
Is the CMYK value right for printing?
It’s the simple formula, with no printer profile, so treat it as a starting point. Real print colors depend on the paper, inks and the profile your printer uses.
Why does the HEX code have 8 digits?
The last two digits are the alpha (opacity): #ff000080 is red at about 50%. Six digits mean fully opaque.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
c | The color, in any CSS notation (write # as %23 in a link). |
Example: https://toolabelle.com/color-converter/#c=%231e90ff