HSL to HEX: #C7D2FE

Also known as: Tailwind v3 indigo-200

Result

hsl(228.00 96.49% 88.82%) → #C7D2FE

Values are shown at full precision, so converting back gives exactly #c7d2fe. 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 = 228.00°, S = 96.49%, L = 88.82%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.04315, 0.21575)
    R = round((0.00000 + 0.78032) × 255) = 199
    G = round((0.04315 + 0.78032) × 255) = 210
    B = round((0.21575 + 0.78032) × 255) = 254
  6. 6. RGB → HEX

    #C7D2FE

All formats

HEX
#c7d2fe
RGB
rgb(199 210 254)
RGB (legacy)
rgb(199, 210, 254)
HSL
hsl(228.00 96.49% 88.82%) → hsl(228 96% 89%)
HWB
hwb(228 78% 0%)
OKLCH
oklch(0.870 0.062 274.0) · oklch(87.0% 0.062 274.0)
OKLab
oklab(0.870 0.004 -0.062)
Lab (D50)
lab(84.44 3.00 -22.97)
LCH (D50)
lch(84.44 23.16 277.43)
Display P3
color(display-p3 0.7883 0.8221 0.9817)
Linear sRGB
color(srgb-linear 0.5711 0.6445 0.9911)

Gamut: sRGB and Display P3

#C7D2FE is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.064 and Display P3 reaches 0.070; this color uses 98% of the sRGB chroma available.

CSS snippets

.element {
  color: #c7d2fe;
  color: rgb(199 210 254);
  color: hsl(228 96% 89%);
  color: oklch(0.870 0.062 274.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.870 0.062 274.0);
}
/* arbitrary values */
class="text-[#c7d2fe] bg-[oklch(0.870_0.062_274.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7883 0.8221 0.9817); }
}

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

  • #DAE6FF · oklch(0.930 0.062 274.0) · ΔL +0.06
  • #B4BFEA · oklch(0.810 0.062 274.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?