OKLCH to HEX: #40E0D0
Also known as: CSS turquoise
Result
oklch(0.82233 0.13074 185.089) → #40E0D0
Values are shown at full precision, so converting back gives exactly #40e0d0. 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. input
oklch(0.82233 0.13074 185.089)
2. OKLCH → Oklab
a = C·cos H = -0.13022 b = C·sin H = -0.01160
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.768214 m′ = L − 0.1056·a − 0.0639·b = 0.836817 s′ = L − 0.0895·a − 1.2915·b = 0.848960
4. cube
l = 0.768214³ = 0.453364 m = 0.836817³ = 0.585992 s = 0.848960³ = 0.611875
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.051281 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.745388 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.630746
6. linear → sRGB, × 255
R = 0.25101 × 255 = 64.01 → 64 G = 0.87842 × 255 = 224.00 → 224 B = 0.81568 × 255 = 208.00 → 208
7. RGB → HEX
#40E0D0
All formats
- HEX
- #40e0d0
- RGB
- rgb(64 224 208)
- RGB (legacy)
- rgb(64, 224, 208)
- HSL
- hsl(174.00 72.07% 56.47%) → hsl(174 72% 56%)
- HWB
- hwb(174 25% 12%)
- OKLCH
- oklch(0.822 0.131 185.1) · oklch(82.2% 0.131 185.1)
- OKLab
- oklab(0.822 -0.130 -0.012)
- Lab (D50)
- lab(80.96 -45.14 -4.68)
- LCH (D50)
- lch(80.96 45.38 185.92)
- Display P3
- color(display-p3 0.4547 0.8663 0.8148)
- Linear sRGB
- color(srgb-linear 0.0513 0.7454 0.6308)
Gamut: sRGB and Display P3
#40E0D0 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.145 and Display P3 reaches 0.196; this color uses 90% of the sRGB chroma available.
CSS snippets
.element {
color: #40e0d0;
color: rgb(64 224 208);
color: hsl(174 72% 56%);
color: oklch(0.822 0.131 185.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.822 0.131 185.1);
}
/* arbitrary values */
class="text-[#40e0d0] bg-[oklch(0.822_0.131_185.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4547 0.8663 0.8148); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #40e0d0 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- teal-300#46ECD5
- v3 teal-300#5EEAD4
- v3 teal-400#2DD4BF
- mediumturquoise#48D1CC
- teal-400#00D5BE
- v3 emerald-300#6EE7B7
- emerald-300#5EE9B5
- darkturquoise#00CED1
Lighter and darker, same hue and chroma
- #5BF4E4 · oklch(0.882 0.131 185.1) · ΔL +0.06
- #1BCCBD · oklch(0.762 0.131 185.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?