HSL to HEX: #A5F3FC

Also known as: Tailwind v3 cyan-200

Result

hsl(186.21 93.55% 81.76%) → #A5F3FC

Values are shown at full precision, so converting back gives exactly #a5f3fc. 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 = 186.21°, S = 93.55%, L = 81.76%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.30595, 0.34127)
    R = round((0.00000 + 0.64696) × 255) = 165
    G = round((0.30595 + 0.64696) × 255) = 243
    B = round((0.34127 + 0.64696) × 255) = 252
  6. 6. RGB → HEX

    #A5F3FC

All formats

HEX
#a5f3fc
RGB
rgb(165 243 252)
RGB (legacy)
rgb(165, 243, 252)
HSL
hsl(186.21 93.55% 81.76%) → hsl(186 94% 82%)
HWB
hwb(186 65% 1%)
OKLCH
oklch(0.917 0.077 205.0) · oklch(91.7% 0.077 205.0)
OKLab
oklab(0.917 -0.070 -0.033)
Lab (D50)
lab(91.02 -23.21 -12.39)
LCH (D50)
lch(91.02 26.31 208.09)
Display P3
color(display-p3 0.7143 0.9448 0.9812)
Linear sRGB
color(srgb-linear 0.3763 0.8963 0.9734)

Gamut: sRGB and Display P3

#A5F3FC is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.087 and Display P3 reaches 0.094; this color uses 89% of the sRGB chroma available.

CSS snippets

.element {
  color: #a5f3fc;
  color: rgb(165 243 252);
  color: hsl(186 94% 82%);
  color: oklch(0.917 0.077 205.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.917 0.077 205.0);
}
/* arbitrary values */
class="text-[#a5f3fc] bg-[oklch(0.917_0.077_205.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7143 0.9448 0.9812); }
}

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

  • #B9FFFF · oklch(0.977 0.077 205.0) · ΔL +0.06
  • #92DFE8 · oklch(0.857 0.077 205.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?