HEX to OKLCH: #87CEEB

Also known as: CSS skyblue

Result

#87CEEB → oklch(0.815 0.082 225.8)

Values are shown at full precision, so converting back gives exactly #87ceeb. 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: 135/255 = 0.52941 → 0.242281  (((x + 0.055) / 1.055)^2.4)
    G: 206/255 = 0.80784 → 0.617207  (((x + 0.055) / 1.055)^2.4)
    B: 235/255 = 0.92157 → 0.830770  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.473641
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.560695
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.718640
  3. 3. cube root

    l′ = ∛0.473641 = 0.779501
    m′ = ∛0.560695 = 0.824598
    s′ = ∛0.718640 = 0.895716
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.08192
    H = atan2(b, a) = 225.754°
    L = 0.81482
  6. 6. OKLCH

    oklch(0.81482 0.08192 225.754)
    rounded: oklch(0.815 0.082 225.8)

All formats

HEX
#87ceeb
RGB
rgb(135 206 235)
RGB (legacy)
rgb(135, 206, 235)
HSL
hsl(197.40 71.43% 72.55%) → hsl(197 71% 73%)
HWB
hwb(197 53% 8%)
OKLCH
oklch(0.815 0.082 225.8) · oklch(81.5% 0.082 225.8)
OKLab
oklab(0.815 -0.057 -0.059)
Lab (D50)
lab(78.85 -17.54 -21.79)
LCH (D50)
lch(78.85 27.97 231.17)
Display P3
color(display-p3 0.5916 0.8006 0.9090)
Linear sRGB
color(srgb-linear 0.2423 0.6172 0.8308)

Gamut: sRGB and Display P3

#87CEEB is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.123 and Display P3 reaches 0.134; this color uses 66% of the sRGB chroma available.

CSS snippets

.element {
  color: #87ceeb;
  color: rgb(135 206 235);
  color: hsl(197 71% 73%);
  color: oklch(0.815 0.082 225.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.815 0.082 225.8);
}
/* arbitrary values */
class="text-[#87ceeb] bg-[oklch(0.815_0.082_225.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5916 0.8006 0.9090); }
}

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

  • #9AE2FF · oklch(0.875 0.082 225.8) · ΔL +0.06
  • #74BBD7 · oklch(0.755 0.082 225.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?