Color Converter
Paste a color in any common format and get it in all the others. It reads hex, rgb(), hsl(), oklch() and CSS color names, and shows the closest named color.
Runs in your browser. Nothing you type is uploaded.
Result
Closest CSS name: peru.
| Format | Value |
|---|---|
| HEX | #e08a45 |
| RGB | rgb(224, 138, 69) |
| HSL | hsl(27, 71%, 57%) |
| HSV / HSB | 27°, 69%, 88% |
| OKLCH | oklch(71.1% 0.134 56.9) |
| OKLab | oklab(71.1% 0.073 0.112) |
| CMYK (simple) | 0%, 38%, 69%, 12% |
| Nearest CSS name | peru (#cd853f, ΔE 3.7) |
| Contrast on white | 2.66:1 |
| Contrast on black | 7.89:1 |
color: #e08a45;
color: rgb(224, 138, 69);
color: hsl(27, 71%, 57%);
color: oklch(71.1% 0.134 56.9);How it works
- Formats it reads
- Hex with 3, 4, 6 or 8 digits, rgb() and rgba(), hsl() and hsla() with commas or spaces, oklch(), and all 148 CSS color names.
- OKLCH
- OKLCH is worked out through OKLab, using linear sRGB values. Lightness is shown as a percent, then chroma, then hue in degrees.
- CMYK and the nearest name
- CMYK uses the simple formula with no printer profile, so treat it as a starting point for print. The nearest CSS name is the one with the smallest OKLab distance.
Questions
Is the CMYK value ready for print?
Not exactly. Printers use color profiles that change the numbers. Use this value as a starting point and check a proof with your printer.
What is OKLCH and why use it?
OKLCH describes a color by lightness, chroma and hue in a way that matches how people see. Changing only lightness keeps the color looking like the same hue, which makes it handy for shades and themes. All current major browsers support it in CSS.
What does ΔE mean next to the nearest name?
It is the distance between your color and the named color in OKLab, times 100. Under about 2 is hard to tell apart; above 10 is a clearly different color.
Get CapyLaunch Weekly
New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.
Your launch, this week. Free.
A reviewed listing, a permanent page with a link to your site, and feedback from makers who actually care.