HEX to OKLCH: #065F46
Also known as: Tailwind v3 emerald-800
Result
#065F46 → oklch(0.432 0.086 166.9)
Values are shown at full precision, so converting back gives exactly #065f46. 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: 6/255 = 0.02353 → 0.001821 (÷ 12.92) G: 95/255 = 0.37255 → 0.114435 (((x + 0.055) / 1.055)^2.4) B: 70/255 = 0.27451 → 0.061246 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.065277 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.084860 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.070983
3. cube root
l′ = ∛0.065277 = 0.402643 m′ = ∛0.084860 = 0.439441 s′ = ∛0.070983 = 0.414049
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.43180 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.08423 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.01958
5. Oklab → OKLCH
C = √(a² + b²) = 0.08647 H = atan2(b, a) = 166.913° L = 0.43180
6. OKLCH
oklch(0.43180 0.08647 166.913) rounded: oklch(0.432 0.086 166.9)
All formats
- HEX
- #065f46
- RGB
- rgb(6 95 70)
- RGB (legacy)
- rgb(6, 95, 70)
- HSL
- hsl(163.15 88.12% 19.80%) → hsl(163 88% 20%)
- HWB
- hwb(163 2% 63%)
- OKLCH
- oklch(0.432 0.086 166.9) · oklch(43.2% 0.086 166.9)
- OKLab
- oklab(0.432 -0.084 0.020)
- Lab (D50)
- lab(35.23 -29.98 7.30)
- LCH (D50)
- lch(35.23 30.85 166.31)
- Display P3
- color(display-p3 0.1593 0.3667 0.2808)
- Linear sRGB
- color(srgb-linear 0.0018 0.1144 0.0612)
Gamut: sRGB and Display P3
#065F46 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.089 and Display P3 reaches 0.121; this color uses 98% of the sRGB chroma available.
CSS snippets
.element {
color: #065f46;
color: rgb(6 95 70);
color: hsl(163 88% 20%);
color: oklch(0.432 0.086 166.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.432 0.086 166.9);
}
/* arbitrary values */
class="text-[#065f46] bg-[oklch(0.432_0.086_166.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1593 0.3667 0.2808); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #065f46 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- emerald-800#006045
- teal-800#005F5A
- v3 teal-800#115E59
- v3 green-800#166534
- green-800#016630
- v3 green-900#14532D
- green-900#0D542B
- emerald-900#004F3B
Lighter and darker, same hue and chroma
- #227056 · oklch(0.492 0.086 166.9) · ΔL +0.06
- #004E36 · oklch(0.372 0.086 166.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?