Color Converter
Convert a color between HEX, RGB, HSL, and OKLCH in one place. Pick or paste any value and copy the format you need, with a live swatch as you go.
#2D6BB0
rgb(45, 107, 176)
hsl(212, 59%, 43%)
oklch(0.522 0.126 253.4)
FAQ
What color formats does it convert between?
HEX, RGB, HSL, and OKLCH. Change any input and the other three update instantly, each with a one-click copy button.
What is OKLCH and why use it?
OKLCH is a perceptually uniform color space now supported in all modern browsers. Equal changes in its lightness and chroma look equal to the eye, which makes it ideal for building consistent color scales and accessible themes.
Are the conversions accurate?
Yes. RGB and HSL use standard sRGB math, and OKLCH uses Björn Ottosson's OKLab transform. Values are clamped to the sRGB gamut so every result is displayable.
Now design the whole app.
Bender turns a prompt into a full set of themed mobile screens you can edit, test, and export. Free to start — no credit card.
Try Bender free