HEX to OKLCH: #C7D2FE

Also known as: Tailwind v3 indigo-200

Result

#C7D2FE → oklch(0.870 0.062 274.0)

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. sRGB → linear

    R: 199/255 = 0.78039 → 0.571125  (((x + 0.055) / 1.055)^2.4)
    G: 210/255 = 0.82353 → 0.644480  (((x + 0.055) / 1.055)^2.4)
    B: 254/255 = 0.99608 → 0.991102  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.632074
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.666162
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.856367
  3. 3. cube root

    l′ = ∛0.632074 = 0.858201
    m′ = ∛0.666162 = 0.873360
    s′ = ∛0.856367 = 0.949628
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.86986
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00438
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.06207
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.06222
    H = atan2(b, a) = 274.039°
    L = 0.86986
  6. 6. OKLCH

    oklch(0.86986 0.06222 274.039)
    rounded: oklch(0.870 0.062 274.0)

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?