HEX, RGB, HSL, and OKLCH Color Converter
Convert HEX, RGB, HSL, and OKLCH colors locally between formats. HEX, RGB, and HSL outputs use sRGB; out-of-gamut OKLCH values are mapped for display.
Color picker
Click or drag the color field; use the labeled sliders with a keyboard or touch.
The text field accepts #RGB, #RGBA, #RRGGBB, #RRGGBBAA, rgb(), hsl(), or oklch(). Input is limited to 128 UTF-16 code units. HEX, RGB, and HSL outputs use sRGB.
Color formats
- HEX
#4f46e5- RGB
rgb(79, 70, 229)- HSL
hsl(243.4, 75.36%, 58.63%)- OKLCH
oklch(51.06% 0.2301 276.97)