HEX to OKLCH: #00D492
Also known as: Tailwind emerald-400
Result
#00D492 → oklch(0.769 0.169 161.9)
Values are shown at full precision, so converting back gives exactly #00d492. 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: 212/255 = 0.83137 → 0.658375 (((x + 0.055) / 1.055)^2.4) B: 146/255 = 0.57255 → 0.287441 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.367896 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.479026 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.366558
3. cube root
l′ = ∛0.367896 = 0.716542 m′ = ∛0.479026 = 0.782443 s′ = ∛0.366558 = 0.715672
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.76885 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.16044 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.05229
5. Oklab → OKLCH
C = √(a² + b²) = 0.16875 H = atan2(b, a) = 161.949° L = 0.76885
6. OKLCH
oklch(0.76885 0.16875 161.949) rounded: oklch(0.769 0.169 161.9)
All formats
- HEX
- #00d492
- RGB
- rgb(0 212 146)
- RGB (legacy)
- rgb(0, 212, 146)
- HSL
- hsl(161.32 100.00% 41.57%) → hsl(161 100% 42%)
- HWB
- hwb(161 0% 17%)
- OKLCH
- oklch(0.769 0.169 161.9) · oklch(76.9% 0.169 161.9)
- OKLab
- oklab(0.769 -0.160 0.052)
- Lab (D50)
- lab(75.41 -57.24 19.93)
- LCH (D50)
- lch(75.41 60.61 160.80)
- Display P3
- color(display-p3 0.3763 0.8190 0.5921)
- Linear sRGB
- color(srgb-linear 0.0000 0.6584 0.2874)
Gamut: sRGB and Display P3
#00D492 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.169 and Display P3 reaches 0.232; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #00d492;
color: rgb(0 212 146);
color: hsl(161 100% 42%);
color: oklch(0.769 0.169 161.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.769 0.169 161.9);
}
/* arbitrary values */
class="text-[#00d492] bg-[oklch(0.769_0.169_161.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3763 0.8190 0.5921); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #00d492 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 emerald-400#34D399
- v3 green-400#4ADE80
- green-400#05DF72
- teal-400#00D5BE
- mediumaquamarine#66CDAA
- v3 green-500#22C55E
- v3 teal-400#2DD4BF
- emerald-500#00BC7D
Lighter and darker, same hue and chroma
- #38E8A5 · oklch(0.829 0.169 161.9) · ΔL +0.06
- #00C080 · oklch(0.709 0.169 161.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?