OKLCH to HEX: #C6D2FF

Also known as: Tailwind indigo-200

Result

oklch(0.86950 0.06384 273.313) → #C6D2FF

Values are shown at full precision, so converting back gives exactly #c6d2ff. 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

    oklch(0.86950 0.06384 273.313)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.00369
    b = C·sin H = -0.06373
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.857208
    m′ = L − 0.1056·a − 0.0639·b = 0.873180
    s′ = L − 0.0895·a − 1.2915·b = 0.951481
  4. 4. cube

    l = 0.857208³ = 0.629882
    m = 0.873180³ = 0.665751
    s = 0.951481³ = 0.861390
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.564710
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.644473
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.999977
  6. 6. linear → sRGB, × 255

    R = 0.77647 × 255 = 198.00 → 198
    G = 0.82353 × 255 = 210.00 → 210
    B = 0.99999 × 255 = 255.00 → 255
  7. 7. RGB → HEX

    #C6D2FF

All formats

HEX
#c6d2ff
RGB
rgb(198 210 255)
RGB (legacy)
rgb(198, 210, 255)
HSL
hsl(227.37 100.00% 88.82%) → hsl(227 100% 89%)
HWB
hwb(227 78% 0%)
OKLCH
oklch(0.870 0.064 273.3) · oklch(87.0% 0.064 273.3)
OKLab
oklab(0.870 0.004 -0.064)
Lab (D50)
lab(84.40 2.85 -23.57)
LCH (D50)
lch(84.40 23.74 276.88)
Display P3
color(display-p3 0.7851 0.8220 0.9853)
Linear sRGB
color(srgb-linear 0.5647 0.6445 1.0000)

Gamut: sRGB and Display P3

#C6D2FF 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 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #c6d2ff;
  color: rgb(198 210 255);
  color: hsl(227 100% 89%);
  color: oklch(0.870 0.064 273.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.870 0.064 273.3);
}
/* arbitrary values */
class="text-[#c6d2ff] bg-[oklch(0.870_0.064_273.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7851 0.8220 0.9853); }
}

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

  • #D9E6FF · oklch(0.929 0.064 273.3) · ΔL +0.06
  • #B3BFEB · oklch(0.810 0.064 273.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?