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
- Type or paste a color: #ff7f50, rgb(255 127 80), hsl(16 100% 66%), oklch(73.5% 0.168 40.2) or “coral”.
- Or use the color picker.
- Click any value to copy it.
- 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
Contrast Checker Enter a text color and a background color to see the contrast ratio and which WCAG levels pass. Palette Generator Press Generate (or the space bar) for a new palette. Lock colors you like and they stay put. Palette from Image Drop a photo to pull out its main colors, with HEX codes and how much of the image each one covers.