HSL to HEX: #8EC5FF

Also known as: Tailwind blue-300

Result

hsl(210.80 100.00% 77.84%) → #8EC5FF

Values are shown at full precision, so converting back gives exactly #8ec5ff. 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 = 210.80°, S = 100.00%, L = 77.84%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.21569, 0.44320)
    R = round((0.00000 + 0.55680) × 255) = 142
    G = round((0.21569 + 0.55680) × 255) = 197
    B = round((0.44320 + 0.55680) × 255) = 255
  6. 6. RGB → HEX

    #8EC5FF

All formats

HEX
#8ec5ff
RGB
rgb(142 197 255)
RGB (legacy)
rgb(142, 197, 255)
HSL
hsl(210.80 100.00% 77.84%) → hsl(211 100% 78%)
HWB
hwb(211 56% 0%)
OKLCH
oklch(0.807 0.101 250.4) · oklch(80.7% 0.101 250.4)
OKLab
oklab(0.807 -0.034 -0.095)
Lab (D50)
lab(77.34 -7.17 -34.68)
LCH (D50)
lch(77.34 35.41 258.32)
Display P3
color(display-p3 0.6026 0.7666 0.9802)
Linear sRGB
color(srgb-linear 0.2705 0.5583 1.0000)

Gamut: sRGB and Display P3

#8EC5FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.101 and Display P3 reaches 0.110; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #8ec5ff;
  color: rgb(142 197 255);
  color: hsl(211 100% 78%);
  color: oklch(0.807 0.101 250.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.807 0.101 250.4);
}
/* arbitrary values */
class="text-[#8ec5ff] bg-[oklch(0.807_0.101_250.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6026 0.7666 0.9802); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #8ec5ff 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

  • #A1D9FF · oklch(0.867 0.101 250.4) · ΔL +0.06
  • #7BB2EB · oklch(0.747 0.101 250.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?