HEX to OKLCH: #10B981
Also known as: Tailwind v3 emerald-500
Result
#10B981 → oklch(0.696 0.149 162.5)
Values are shown at full precision, so converting back gives exactly #10b981. 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: 16/255 = 0.06275 → 0.005182 (((x + 0.055) / 1.055)^2.4) G: 185/255 = 0.72549 → 0.485150 (((x + 0.055) / 1.055)^2.4) B: 129/255 = 0.50588 → 0.219526 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.273631 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.354916 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.275430
3. cube root
l′ = ∛0.273631 = 0.649215 m′ = ∛0.354916 = 0.708014 s′ = ∛0.275430 = 0.650635
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.69587 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.14216 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.04488
5. Oklab → OKLCH
C = √(a² + b²) = 0.14907 H = atan2(b, a) = 162.480° L = 0.69587
6. OKLCH
oklch(0.69587 0.14907 162.480) rounded: oklch(0.696 0.149 162.5)
All formats
- HEX
- #10b981
- RGB
- rgb(16 185 129)
- RGB (legacy)
- rgb(16, 185, 129)
- HSL
- hsl(160.12 84.08% 39.41%) → hsl(160 84% 39%)
- HWB
- hwb(160 6% 27%)
- OKLCH
- oklch(0.696 0.149 162.5) · oklch(69.6% 0.149 162.5)
- OKLab
- oklab(0.696 -0.142 0.045)
- Lab (D50)
- lab(66.69 -50.67 17.06)
- LCH (D50)
- lch(66.69 53.46 161.39)
- Display P3
- color(display-p3 0.3325 0.7147 0.5221)
- Linear sRGB
- color(srgb-linear 0.0052 0.4851 0.2195)
Gamut: sRGB and Display P3
#10B981 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.152 and Display P3 reaches 0.208; this color uses 98% of the sRGB chroma available.
CSS snippets
.element {
color: #10b981;
color: rgb(16 185 129);
color: hsl(160 84% 39%);
color: oklch(0.696 0.149 162.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.696 0.149 162.5);
}
/* arbitrary values */
class="text-[#10b981] bg-[oklch(0.696_0.149_162.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3325 0.7147 0.5221); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #10b981 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- emerald-500#00BC7D
- mediumseagreen#3CB371
- teal-500#00BBA7
- v3 teal-500#14B8A6
- v3 green-500#22C55E
- lightseagreen#20B2AA
- emerald-400#00D492
- v3 emerald-400#34D399
Lighter and darker, same hue and chroma
- #37CD93 · oklch(0.756 0.149 162.5) · ΔL +0.06
- #00A66F · oklch(0.636 0.149 162.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?