Skip to Main Content

Color Converter

Convert between hex, RGB, HSL, OKLCH, and OKLAB while checking contrast and exporting CSS-ready tokens.

Supports hex, rgb(), hsl(), oklch(), oklab(), and named CSS colors.

Current color

#953769

Suggested foreground

#FFFFFF

Complementary color

#007653

Hex
RGB(A)
HSL(A)
OKLCH
OKLAB
Alpha
Tailwind theme
Generate a full brand palette for Tailwind CSS 4 or 3 from the current color.
50
oklch(94.5% 0.0212 350.46)
100
oklch(89.49% 0.0339 350.46)
200
oklch(81.48% 0.0542 350.46)
300
oklch(72.47% 0.0771 350.46)
400
oklch(61.46% 0.105 350.46)
500
oklch(48.44% 0.138 350.46)
600
oklch(43.57% 0.1236 350.46)
700
oklch(38.7% 0.1093 350.46)
800
oklch(33.22% 0.0932 350.46)
900
oklch(27.74% 0.077 350.46)
950
oklch(23.48% 0.0644 350.46)
CSS variables

About CSS color conversion

Color converters help you move the same color between HEX, RGB, HSL, OKLCH, and OKLAB. They are most useful when you need readable output, contrast context, and values ready for CSS or Tailwind.

HEX, RGB, HSL, and CSS colors

HEX, RGB, and HSL cover most everyday browser, design, and frontend workflows.

Fast conversion lets you paste one value and reuse it anywhere without rewriting syntax by hand.

Why OKLCH and OKLAB matter

OKLCH and OKLAB are better for building smooth scales and predictable lightness changes.

They make palette work easier when you care about balanced ramps and reliable contrast.

Contrast checks and Tailwind output

Contrast checks and framework-ready output turn a converter into a practical UI tool.

You can move from one input color to accessible text choices and Tailwind-friendly tokens faster.

Frequently asked questions

Answers about supported color formats, when to use perceptual spaces such as OKLCH, and how the contrast and Tailwind outputs should be interpreted.

Other tools

Browse every dedicated tool page from the homepage hub or the centered header selector.