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.

Your numbers

Result

HEX#e08a45

Closest CSS name: peru.

The same color in each format
FormatValue
HEX#e08a45
RGBrgb(224, 138, 69)
HSLhsl(27, 71%, 57%)
HSV / HSB27°, 69%, 88%
OKLCHoklch(71.1% 0.134 56.9)
OKLaboklab(71.1% 0.073 0.112)
CMYK (simple)0%, 38%, 69%, 12%
Nearest CSS nameperu (#cd853f, ΔE 3.7)
Contrast on white2.66:1
Contrast on black7.89:1
CSS, each line gives the same color
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.

We send a confirm link first. Privacy

Your launch, this week. Free.

A reviewed listing, a permanent page with a link to your site, and feedback from makers who actually care.

Start my launch →or browse toolsFree to submit. Every listing is reviewed before it goes live.