TXT · Text & Data tools

OKLab to RGB Converter

Active color#000000

oklab(0% 0 0)

OKLab Input
RGB Output
1Active Line0Valid Items
Go To Full Color Converter

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Convert OKLab color values into standard RGB channels.

Input formats

Provide colors using oklab(L a b) syntax, with lightness as a percentage from 0% to 100% and the a and b axes as small plain numbers. Each line is parsed independently in batch mode.

RGB output

The output prints as rgb(r, g, b) with each channel from 0 to 255. oklab(68.04% 0.1747 0.1165) becomes rgb(255, 87, 51).

Out-of-gamut values

Not every OKLab value maps to a color inside sRGB. When a and b push a color beyond that range for the given lightness, each RGB channel clamps to 0-255, which can shift the result slightly from the exact OKLab value entered.

Frequently Asked Questions

oklab(L a b) with L as a percentage (or a 0-1 number) and a/b as small plain numbers, such as oklab(68.04% 0.1747 0.1165). Paste one color per line for batch conversion.

No. OKLab can describe colors outside the sRGB gamut a browser can display. Out-of-gamut results are clamped to the nearest representable channel values.

Either works. A trailing percent sign is read as 0-100%, and a plain number is read directly on the 0-1 scale the CSS oklab() function also accepts.

Try one of our format-specific converters below

Full Color Converter tool

Explore Our Tools

Browse all tools