OKLCH to HEX: #87CEEB

Also known as: CSS skyblue

Result

oklch(0.81482 0.08192 225.754) → #87CEEB

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. input

    oklch(0.81482 0.08192 225.754)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.05716
    b = C·sin H = -0.05868
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.779502
    m′ = L − 0.1056·a − 0.0639·b = 0.824601
    s′ = L − 0.0895·a − 1.2915·b = 0.895724
  4. 4. cube

    l = 0.779502³ = 0.473643
    m = 0.824601³ = 0.560701
    s = 0.895724³ = 0.718658
  5. 5. LMS → linear sRGB

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

    R = 0.52940 × 255 = 135.00 → 135
    G = 0.80785 × 255 = 206.00 → 206
    B = 0.92158 × 255 = 235.00 → 235
  7. 7. RGB → HEX

    #87CEEB

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?