Guide · Developer Tools / Design, Color & CSS
About OKLCH ⇄ HEX / RGB / HSL Converter
Convert bidirectionally between CSS Color Level 4 perceptual `oklch(L C H)` values and standard sRGB `HEX`, `rgb()`, and `hsl()` formats.
When to use this tool
Essential when authoring modern Tailwind v4 or CSS Color 4 palettes with uniform perceived lightness across hues.
How to use OKLCH ⇄ HEX / RGB / HSL Converter
- Enter an sRGB Color hex—or supply Override with OKLCH (L C H) space-separated numbers.
- Copy exact `oklch()`, `#HEX`, `rgb()`, and `hsl()` CSS rules.
Supported inputs, options, and outputs
- Inputs: sRGB hex color or explicit `L C H` OKLCH triplet.
- Outputs: Synchronized CSS color strings across all four color spaces.
Accuracy notes and limitations
- High-chroma OKLCH colors outside the sRGB gamut clamp channel components into `0–255` when converting back to `#RRGGBB` hex.
Privacy and browser processing
Color palettes, CSS rules, SVG vectors, barcodes, and SEO metadata snippets generate strictly inside browser memory—nothing is uploaded to IJM servers. Hosted deployments load cookie-free analytics and Google Fonts.
Read the full IJM Privacy Policy or browse all Developer Tools.