HSL to HEX: #66CDAA

Also known as: CSS mediumaquamarine

Result

hsl(159.61 50.74% 60.20%) → #66CDAA

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. 1. input

    H = 159.61°, S = 50.74%, L = 60.20%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.40389
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.26663   (H / 60° = 2.6602, sector 2)
  4. 4. m

    m = L − C / 2 = 0.40005
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00000, 0.40389, 0.26663)
    R = round((0.00000 + 0.40005) × 255) = 102
    G = round((0.40389 + 0.40005) × 255) = 205
    B = round((0.26663 + 0.40005) × 255) = 170
  6. 6. RGB → HEX

    #66CDAA

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).

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

All converters →

Guides: What is OKLCH?