Enter any hex color code to get detailed conversions (RGB, HSL, OKLCH), WCAG contrast ratios, shades, tints, and the closest CSS named color.
mediumorchid
#a855f7
On White
3.96:1
On Black
5.31:1
This tool converts any color to HEX, RGB, HSL, and OKLCH formats simultaneously. Enter a hex code and get all four formats instantly with one-click copy.
OKLCH is a perceptually uniform color space where colors with the same lightness value actually appear equally bright, unlike HSL. Modern CSS supports it natively, making it ideal for design systems and consistent UI palettes.
Shades are generated by decreasing the lightness value in HSL, producing darker versions. Tints increase the lightness, producing lighter versions. Both maintain the original hue and saturation for consistent palettes.