IJM
Developer ToolsDesign, Color & CSS

OKLCH ⇄ HEX / RGB / HSL Converter

Convert modern CSS OKLCH perceptual colors to sRGB HEX, RGB, and HSL or convert any HEX color to CSS Color 4 oklch().

Processed in browserNo upload

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

  1. Enter an sRGB Color hex—or supply Override with OKLCH (L C H) space-separated numbers.
  2. 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.

Related Tools

Ranked by matching inputs, outputs, and workflow compatibility

View all 134 in Developer Tools →