How to use the Color Converter
- Click the color swatch or the color picker to choose a color visually.
- Or type any value directly into a format field — HEX, RGB, HSL, or OKLCH — and all others update instantly.
- Click Copy next to any format to copy it to your clipboard.
HEX vs RGB vs HSL vs OKLCH
HEX (#RRGGBB) is the most common format for the web and CSS. RGB expresses each channel from 0–255. HSL (hue, saturation, lightness) is intuitive for designers — adjusting the lightness creates tints and shades. OKLCH is the modern perceptual color space defined in CSS Color Level 4: its lightness value is perceptually uniform and it supports a wider color gamut than sRGB.