HEX to OKLCH: #00C950
Also known as: Tailwind green-500
Result
#00C950 → oklch(0.729 0.212 147.8)
Values are shown at full precision, so converting back gives exactly #00c950. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. sRGB → linear
R: 0/255 = 0.00000 → 0.000000 (÷ 12.92) G: 201/255 = 0.78824 → 0.584078 (((x + 0.055) / 1.055)^2.4) B: 80/255 = 0.31373 → 0.080220 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.317387 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.406197 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.215083
3. cube root
l′ = ∛0.317387 = 0.682124 m′ = ∛0.406197 = 0.740592 s′ = ∛0.215083 = 0.599149
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.72886 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.17938 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.11287
5. Oklab → OKLCH
C = √(a² + b²) = 0.21194 H = atan2(b, a) = 147.822° L = 0.72886
6. OKLCH
oklch(0.72886 0.21194 147.822) rounded: oklch(0.729 0.212 147.8)
All formats
- HEX
- #00c950
- RGB
- rgb(0 201 80)
- RGB (legacy)
- rgb(0, 201, 80)
- HSL
- hsl(143.88 100.00% 39.41%) → hsl(144 100% 39%)
- HWB
- hwb(144 0% 21%)
- OKLCH
- oklch(0.729 0.212 147.8) · oklch(72.9% 0.212 147.8)
- OKLab
- oklab(0.729 -0.179 0.113)
- Lab (D50)
- lab(71.12 -62.56 46.81)
- LCH (D50)
- lch(71.12 78.13 143.19)
- Display P3
- color(display-p3 0.3553 0.7765 0.3739)
- Linear sRGB
- color(srgb-linear 0.0000 0.5841 0.0802)
Gamut: sRGB and Display P3
#00C950 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.212 and Display P3 reaches 0.297; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #00c950;
color: rgb(0 201 80);
color: hsl(144 100% 39%);
color: oklch(0.729 0.212 147.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.729 0.212 147.8);
}
/* arbitrary values */
class="text-[#00c950] bg-[oklch(0.729_0.212_147.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3553 0.7765 0.3739); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #00c950 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 green-500#22C55E
- limegreen#32CD32
- green-400#05DF72
- lime-500#7CCF00
- emerald-500#00BC7D
- v3 lime-500#84CC16
- emerald-400#00D492
- v3 green-400#4ADE80
Lighter and darker, same hue and chroma
- #35DD64 · oklch(0.789 0.212 147.8) · ΔL +0.06
- #00B53C · oklch(0.669 0.212 147.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?