HEX to HSL: #66CDAA
Also known as: CSS mediumaquamarine
Result
#66CDAA → hsl(160 51% 60%)
Values are shown at full precision, so converting back gives exactly #66cdaa. 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. RGB ÷ 255
R = 0.4000 G = 0.8039 B = 0.6667
2. max, min, Δ
max = 0.8039 min = 0.4000 Δ = max − min = 0.4039
3. L
L = (max + min) / 2 = 0.6020 = 60.20%
4. S
S = Δ / (1 − |2L − 1|) = 0.5074 = 50.74%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.6667 − 0.4000) / 0.4039 + 2) = 159.61°
6. HSL
hsl(159.61 50.74% 60.20%)
All formats
- HEX
- #66cdaa
- RGB
- rgb(102 205 170)
- RGB (legacy)
- rgb(102, 205, 170)
- HSL
- hsl(159.61 50.74% 60.20%) → hsl(160 51% 60%)
- HWB
- hwb(160 40% 20%)
- OKLCH
- oklch(0.777 0.110 168.8) · oklch(77.7% 0.110 168.8)
- OKLab
- oklab(0.777 -0.108 0.021)
- Lab (D50)
- lab(75.55 -37.75 7.83)
- LCH (D50)
- lch(75.55 38.56 168.28)
- Display P3
- color(display-p3 0.5039 0.7946 0.6745)
- Linear sRGB
- color(srgb-linear 0.1329 0.6105 0.4020)
Gamut: sRGB and Display P3
#66CDAA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.156 and Display P3 reaches 0.213; this color uses 71% of the sRGB chroma available.
CSS snippets
.element {
color: #66cdaa;
color: rgb(102 205 170);
color: hsl(160 51% 60%);
color: oklch(0.777 0.110 168.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.777 0.110 168.8);
}
/* arbitrary values */
class="text-[#66cdaa] bg-[oklch(0.777_0.110_168.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5039 0.7946 0.6745); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #66cdaa calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 teal-400#2DD4BF
- teal-400#00D5BE
- v3 emerald-400#34D399
- mediumturquoise#48D1CC
- darkseagreen#8FBC8F
- turquoise#40E0D0
- emerald-400#00D492
- darkturquoise#00CED1
Lighter and darker, same hue and chroma
- #7AE1BD · oklch(0.837 0.110 168.8) · ΔL +0.06
- #51BA97 · oklch(0.717 0.110 168.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?