$ convert --color
color converter.
Convert colors between HEX, RGB, HSL, OKLCH, and named colors in real time.
input
enter a color
1
2
3
4
5
2
3
4
5
formats
HEX#a78bfa
RGBrgb(167, 139, 250)
RGBArgba(167, 139, 250, 1)
HSLhsl(259, 92%, 76%)
HSLAhsla(259, 92%, 76%, 1)
OKLCHoklch(0.55 0.24 265)
Name—
click any format row to copy.
HEX (#ff6600), RGB (rgb(255,102,0)), HSL (hsl(24,100%,50%)), OKLCH (oklch(0.62,0.13,45)), and named colors (orange).
OKLCH is a perceptually uniform color space that better matches human vision. It separates lightness, chroma (saturation), and hue for more intuitive color manipulation.
Different color spaces have different gamuts. RGB has a wider gamut than HSL. OKLCH is designed to be perceptually uniform.
learn more in our detailed guide.
→ read the guide