Color Converter
Convert any colour between HEX, RGB, HSL, and OKLCH. Includes a visual colour picker and live preview.
Features
How to Use
1. Pick a color (or click the stage, paste a HEX, use the eyedropper, or press Space for random).
2. Every format — HEX, RGB, HSL, OKLCH — converts live in both directions.
3. Copy a single value or the whole CSS variable block; switch the stage surface to judge the color on white, grey, or deep.
About this tool
Designers pick colours visually, CSS needs a string, and different tools speak different formats. This converter keeps one colour in sync across HEX, RGB, HSL and OKLCH: change any field or use the picker and the rest update instantly. HEX and RGB describe the red, green and blue channels; HSL describes hue, saturation and lightness, which is easier to adjust by hand; OKLCH is a newer perceptual format in CSS Color Level 4 where equal steps in lightness look equal to the eye, making it better for building consistent palettes. You can copy a single value or a ready-made block of CSS custom properties, and preview the colour on white, grey or dark surroundings before using it.