OKLab to RGB Converter
OKLab in, RGB out — with the working shown.
To convert OKLab to RGB, normalise the input, convert OKLab back to RGB, write out the RGB value, then check the gamut. For example, oklab(61.82% -0.0391 -0.1895) in OKLab is rgb(47 129 247) in RGB.
This is a free OKLab to RGB converter. Type or paste any OKLab into the field above and the RGB value updates as you type, along with every other notation the web understands. RGB is three channels from 0 to 255 describing how hard the display drives its red, green and blue subpixels.
Conversions run entirely in your browser using the same color engine as the rest of the site: values round-trip through linear sRGB and CIE XYZ rather than through an approximation, so what you copy is accurate to the last digit the format can carry.
How to convert OKLab to RGB
- Normalise the input. Read the OKLab value and scale each component into the 0–1 range the maths expects.
- Convert OKLab back to RGB. OKLab is not the display's native model, so the first move is always back to red, green and blue.
- Write out the RGB value. Convert back through sRGB and format the result as RGB.
- Check the gamut. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get.
Worked example: oklab(61.82% -0.0391 -0.1895) converts to rgb(47 129 247). That color is Dodger Blue, and the tool above shows each intermediate step for whatever value you enter.
Common OKLab to RGB values
The twenty colors people look up most often, converted from OKLab to RGB. Every row is computed by the same engine as the tool above.
| Color | OKLab | RGB |
|---|---|---|
| White | oklab(100% 0 0) | rgb(255 255 255) |
| Black | oklab(0% 0 0) | rgb(0 0 0) |
| Red | oklab(62.8% 0.2249 0.1258) | rgb(255 0 0) |
| Lime | oklab(86.64% -0.2339 0.1795) | rgb(0 255 0) |
| Blue | oklab(45.2% -0.0325 -0.3115) | rgb(0 0 255) |
| Yellow | oklab(96.8% -0.0714 0.1986) | rgb(255 255 0) |
| Cyan | oklab(90.54% -0.1494 -0.0394) | rgb(0 255 255) |
| Magenta | oklab(70.17% 0.2746 -0.1692) | rgb(255 0 255) |
| Silver | oklab(80.78% 0 0) | rgb(192 192 192) |
| Gray | oklab(59.99% 0 0) | rgb(128 128 128) |
| Maroon | oklab(37.67% 0.1349 0.0755) | rgb(128 0 0) |
| Olive | oklab(58.07% -0.0428 0.1191) | rgb(128 128 0) |
| Green | oklab(51.98% -0.1403 0.1077) | rgb(0 128 0) |
| Purple | oklab(42.09% 0.1647 -0.1015) | rgb(128 0 128) |
| Teal | oklab(54.31% -0.0896 -0.0236) | rgb(0 128 128) |
| Navy | oklab(27.11% -0.0195 -0.1869) | rgb(0 0 128) |
| Orange | oklab(79.27% 0.0566 0.1614) | rgb(255 165 0) |
| Pink | oklab(86.77% 0.073 0.0091) | rgb(255 192 203) |
| Gold | oklab(88.68% -0.0169 0.1814) | rgb(255 215 0) |
| Crimson | oklab(57.12% 0.2084 0.0762) | rgb(220 20 60) |
OKLab and RGB, briefly
OKLab is a modern perceptual space with noticeably better hue linearity than CIE Lab. Valid range: L 0–1, a and b roughly −0.4 to 0.4.
RGB is three channels from 0 to 255 describing how hard the display drives its red, green and blue subpixels. Valid range: 0–255 per channel.
Frequently asked questions
How do you convert OKLab to RGB?
1. Read the OKLab value and scale each component into the 0–1 range the maths expects. 2. OKLab is not the display's native model, so the first move is always back to red, green and blue. 3. Convert back through sRGB and format the result as RGB. 4. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get. The converter on this page does all of it as you type, and shows the working underneath.
What is oklab(62.8% 0.2249 0.1258) in RGB?
Pure red, oklab(62.8% 0.2249 0.1258), is rgb(255 0 0) in RGB. There is a table of twenty common colors converted to RGB further up this page.
What is oklab(61.82% -0.0391 -0.1895) in RGB?
oklab(61.82% -0.0391 -0.1895) converts to rgb(47 129 247). It is a dodger blue, and you can paste any other value into the field at the top of the page to convert it.
Is OKLab to RGB conversion lossless?
Within sRGB, yes — converting to RGB and back returns the value you started with. The only rounding happens when a component is written out to a fixed number of decimal places.
Can I use RGB directly in CSS?
Yes. rgb(47 129 247) is valid CSS and works in every current browser.
Does this OKLab to RGB converter support transparency?
Alpha is preserved wherever the target notation can carry it — eight-digit hex, rgb() / a, hsl() / a and the modern CSS spaces all round-trip an alpha channel. CMYK has no alpha, so it is dropped there.
Is my color data sent anywhere?
No. Every conversion on this site runs in your browser with no network request, no account and no analytics. You can disconnect and it keeps working.