Skip to content

Color converter

Paste a color in any format (HEX, RGB, HSL, OKLCH or a CSS name) and copy it in every other format.

#FF7F50
HEX
RGB
HSL
HSV / HSB
OKLCH
CMYK
CSS variable
Closest CSS color names: Coral (exact) Salmon Tomato

Runs entirely in your browser. Your files and colors never leave your device.

How to use the color converter

  1. Type or paste a color: #ff7f50, rgb(255 127 80), hsl(16 100% 66%), oklch(73.5% 0.168 40.2) or “coral”.
  2. Or use the color picker.
  3. Click any value to copy it.
  4. See the closest CSS color names and jump to that color’s page for shades and palettes.

How it works

Conversions use the standard sRGB formulas. HSL and HSV are reshapes of sRGB; OKLCH uses Björn Ottosson’s OKLab model (the one in CSS Color 4), and out-of-gamut OKLCH input is brought into sRGB by reducing chroma while keeping lightness and hue. CMYK is a simple device-independent formula; for print, use your printer’s ICC profile.

Try it with popular colors

Related tools