HSL to HEX: #40E0D0
Also known as: CSS turquoise
Result
hsl(174.00 72.07% 56.47%) → #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
H = 174.00°, S = 72.07%, L = 56.47%
2. C
C = (1 − |2L − 1|) × S = 0.62744
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.56470 (H / 60° = 2.9000, sector 2)
4. m
m = L − C / 2 = 0.25098
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.62744, 0.56470) R = round((0.00000 + 0.25098) × 255) = 64 G = round((0.62744 + 0.25098) × 255) = 224 B = round((0.56470 + 0.25098) × 255) = 208
6. 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?