Tools38

A PRACTICAL COLOR GUIDE

How to convert HEX, RGB, HSL,OKLCH, and CMYK accurately

Translate any screen, CSS Color 4, or print notation from one omnibox.

Convert colors live across HEX, OKLCH, RGB, HSL, CIELAB, and CMYK while matching the nearest Tailwind CSS v4 token and Classic RAL paint code.

Follow the guide
A REAL STUDIO EXAMPLE
Before Disconnected Formats: Rounding errors across separate converters
After Unified Multi-Space Ledger: Exact floating-point D65 & OKLab pipeline
Universal input omnibox → Simultaneous HEX, OKLCH, RGB, HSL, LAB, CMYK, Tailwind & RAL outputs
QUICK VIDEO TUTORIAL How to convert HEX, RGB, HSL, OKLCH, and CMYK accurately Translate any screen, CSS Color 4, or print notation from one omnibox. Watch the video

How to convert HEX, RGB, HSL, OKLCH, and CMYK accurately

Open Color Converter in your browser to convert colors live across HEX, OKLCH, RGB, HSL, CIELAB, and CMYK while matching the nearest Tailwind CSS v4 token and Classic RAL paint code. Everything runs locally on your device with instant sync across the shared Active Palette bar.

01

Type or paste any color notation into the omnibox

Paste a #HEX code, rgb(200, 30, 81), hsl(342 74% 45%), oklch(53.2% 0.205 12), cmyk(0%, 85%, 60%, 22%), a Tailwind token like rose-700, or a Classic RAL code like RAL 3003.

You can also sample any pixel directly from your screen in Chromium browsers using the built-in Eyedropper button.

Inline editing: Every row in the conversion ledger is editable—type into the CMYK or OKLCH row directly to reverse-convert back to HEX.

02

Refine Lightness, Chroma, and Hue without drift

Use the interactive Lightness (L), Chroma (C), and Hue (H) sliders below the specimen card to dial in subtle adjustments while watching every CSS and print notation update simultaneously.

Check the bottom ledger rows to see the nearest official Tailwind CSS v4 utility token and Classic RAL powder-coat standard scored by perceptual CIELAB ΔE.

HEX, RGB & HSL

Ready for HTML canvases, legacy stylesheets, Figma/Sketch inspectors, and SVG attributes.

OKLCH & CIELAB

Perceptually uniform coordinates ideal for modern design tokens and ΔE tolerance specs.

CMYK & Classic RAL

Process ink percentages and nearest industrial RAL standard for signage and packaging.

03

Copy production CSS or push to Active Palette

Click the copy button beside any color space to copy valid CSS syntax, or click Add to Palette to store the swatch in your shared workspace bar.

/* Studio Ruby across CSS & Print standards */
--hex:      #C81E51;
--rgb:      rgb(200, 30, 81);
--hsl:      hsl(342, 74%, 45%);
--oklch:    oklch(53.2% 0.205 12.4);
--tailwind: rose-700; /* ΔE 2.1 */
--ral:      RAL 3027 Raspberry Red;
A FEW USEFUL DETAILS

Common questions

Why can converting CMYK to HEX and back change numbers slightly?

Multiple CMYK ink mixes (varying Black K vs CMY) map to the same sRGB color; round-tripping normalizes to standard Gray Component Replacement (GCR).

Does the converter support 3-digit shorthand HEX like #F06?

Yes. 3-digit shorthand codes expand automatically to 6-digit uppercase hexadecimal (#FF0066).

What illuminant is used for CIELAB and OKLCH math?

sRGB and OKLCH use the standard D65 daylight white point defined by the W3C CSS Color 4 specification.

YOUR TURN

Try Color Converter

Translate any screen, CSS Color 4, or print notation from one omnibox.

Open Color Converter

Image detail

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina