HEX to OKLCH: #05DF72
Also known as: Tailwind green-400
Result
#05DF72 → oklch(0.791 0.209 151.7)
Values are shown at full precision, so converting back gives exactly #05df72. 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: 5/255 = 0.01961 → 0.001518 (÷ 12.92) G: 223/255 = 0.87451 → 0.737910 (((x + 0.055) / 1.055)^2.4) B: 114/255 = 0.44706 → 0.168269 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.405048 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.520688 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.314023
3. cube root
l′ = ∛0.405048 = 0.739893 m′ = ∛0.520688 = 0.804500 s′ = ∛0.314023 = 0.679705
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.79141 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.18402 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.09924
5. Oklab → OKLCH
C = √(a² + b²) = 0.20908 H = atan2(b, a) = 151.662° L = 0.79141
6. OKLCH
oklch(0.79141 0.20908 151.662) rounded: oklch(0.791 0.209 151.7)
All formats
- HEX
- #05df72
- RGB
- rgb(5 223 114)
- RGB (legacy)
- rgb(5, 223, 114)
- HSL
- hsl(150.00 95.61% 44.71%) → hsl(150 96% 45%)
- HWB
- hwb(150 2% 13%)
- OKLCH
- oklch(0.791 0.209 151.7) · oklch(79.1% 0.209 151.7)
- OKLab
- oklab(0.791 -0.184 0.099)
- Lab (D50)
- lab(78.43 -64.91 39.84)
- LCH (D50)
- lch(78.43 76.17 148.46)
- Display P3
- color(display-p3 0.3991 0.8616 0.4919)
- Linear sRGB
- color(srgb-linear 0.0015 0.7379 0.1683)
Gamut: sRGB and Display P3
#05DF72 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.210 and Display P3 reaches 0.292; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #05df72;
color: rgb(5 223 114);
color: hsl(150 96% 45%);
color: oklch(0.791 0.209 151.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.791 0.209 151.7);
}
/* arbitrary values */
class="text-[#05df72] bg-[oklch(0.791_0.209_151.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3991 0.8616 0.4919); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #05df72 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 green-400#4ADE80
- emerald-400#00D492
- limegreen#32CD32
- green-500#00C950
- v3 emerald-400#34D399
- v3 green-500#22C55E
- lime-500#7CCF00
- mediumspringgreen#00FA9A
Lighter and darker, same hue and chroma
- #3AF385 · oklch(0.851 0.209 151.7) · ΔL +0.06
- #00CB5F · oklch(0.731 0.209 151.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?