Skip to the color picker

OKLab to RGBA converter

Paste a OKLab value, get RGBA instantly. Any other format works too.

Read as OKLab

RGBA valuergba(255, 87, 51, 1)
RGBA to OKLab

Adjust the color

11°
100%

68%
0.210
34°

Every other format

Opacity chart: HEX alpha and RGBA

In 8-digit HEX the last two digits set opacity: FF is fully opaque, 80 is about 50%, 00 is fully transparent. The table shows the example color at every 5% step.

OpacityHEX alphaHEXRGBA
100%ff#ff5733rgba(255, 87, 51, 1)
95%f2#ff5733f2rgba(255, 87, 51, 0.95)
90%e6#ff5733e6rgba(255, 87, 51, 0.9)
85%d9#ff5733d9rgba(255, 87, 51, 0.85)
80%cc#ff5733ccrgba(255, 87, 51, 0.8)
75%bf#ff5733bfrgba(255, 87, 51, 0.75)
70%b3#ff5733b3rgba(255, 87, 51, 0.7)
65%a6#ff5733a6rgba(255, 87, 51, 0.65)
60%99#ff573399rgba(255, 87, 51, 0.6)
55%8c#ff57338crgba(255, 87, 51, 0.55)
50%80#ff573380rgba(255, 87, 51, 0.5)
45%73#ff573373rgba(255, 87, 51, 0.45)
40%66#ff573366rgba(255, 87, 51, 0.4)
35%59#ff573359rgba(255, 87, 51, 0.35)
30%4d#ff57334drgba(255, 87, 51, 0.3)
25%40#ff573340rgba(255, 87, 51, 0.25)
20%33#ff573333rgba(255, 87, 51, 0.2)
15%26#ff573326rgba(255, 87, 51, 0.15)
10%1a#ff57331argba(255, 87, 51, 0.1)
5%0d#ff57330drgba(255, 87, 51, 0.05)
0%00#ff573300rgba(255, 87, 51, 0)

OKLab to RGBA examples

ColorOKLabRGBA
oklab(62.796% 0.22486 0.12585)rgba(255, 0, 0, 1)
oklab(86.644% -0.23389 0.1795)rgba(0, 255, 0, 1)
oklab(45.201% -0.03246 -0.31153)rgba(0, 0, 255, 1)
oklab(100% 0 0)rgba(255, 255, 255, 1)
oklab(0% 0 0)rgba(0, 0, 0, 1)
oklab(59.987% 0 0)rgba(128, 128, 128, 1)
oklab(68.036% 0.17474 0.1165)rgba(255, 87, 51, 1)
oklab(62.308% -0.03325 -0.18505)rgba(59, 130, 246, 1)
oklab(69.587% -0.14216 0.04488)rgba(16, 185, 129, 1)
oklab(76.859% 0.0561 0.15481)rgba(245, 158, 11, 1)
oklab(60.563% 0.08454 -0.20193)rgba(139, 92, 246, 1)
oklab(65.592% 0.21073 -0.021)rgba(236, 72, 153, 1)

About OKLab and RGBA

OKLab is a modern perceptual color space from 2020. Equal steps look equal to the eye, which makes gradients and mixes cleaner than in RGB or HSL.

RGBA is RGB plus an alpha channel for opacity, written as rgba(255, 87, 51, 0.5). Alpha goes from 0 (fully transparent) to 1 (fully opaque). The same opacity can be written as 8-digit HEX, like #ff573380.

How the conversion works

We read the OKLab value, convert it to CIE XYZ with the matrices from the CSS Color 4 specification and then into RGBA. Values outside the target gamut are mapped by the CSS Color 4 algorithm, which keeps lightness and hue and reduces chroma.

Questions and answers

How do I convert OKLab to RGBA?

Paste or type a OKLab value into the field above. PickShade converts it with the CSS Color 4 formulas as you type, and one click copies the RGBA value.

Is the OKLab to RGBA conversion exact?

The math is exact and the result is rounded only for display, with enough digits to convert back to the same color. If the color does not fit the target gamut, PickShade warns you and shows the nearest color that fits.

Can I get other formats at the same time?

Yes. Every other format, including OKLCH, Display P3, Tailwind, SwiftUI, Flutter and Android, is listed below the result and copies with one click.

Is this converter free?

Yes. It is free, needs no sign-up and runs entirely in your browser.