CSS named color

Light Sky Blue #87CEFA

The CSS keyword lightskyblue is #87CEFA. It is a pale muted blue in the blue family. In OKLCH it sits at lightness 0.821, chroma 0.095 and hue 236.8°.

Relative luminance
0.5620
OKLCH L · C · h
0.821 · 0.095 · 236.8
Best text
Black 12.23:1
Hue family
Blue

#87CEFA color codes

HEX
#87CEFA
RGB
rgb(135, 206, 250)
HSL
hsl(203, 92%, 75%)
OKLCH
oklch(0.821 0.095 236.8)
OKLab
oklab(0.821 -0.052 -0.079)
CIELAB (D65)
L* 79.72, a* -10.83, b* -28.50
XYZ (D65)
X 49.31, Y 56.19, Z 98.67
CMYK (naive)
cmyk(46%, 18%, 0%, 2%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #87CEFA accessible?

Black text on it reaches 12.23:1, passing AAA. White text fails at 1.71:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    12.23:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +73
  • White text on it

    1.71:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −34
  • As text on black

    12.23:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −72
  • As text on white

    1.71:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +30

Nearest versions that pass 4.5:1

  • For text on white

    #357CA5 4.58:1

    Darkening its OKLCH lightness from 0.82 to 0.56 reaches 4.58:1 on white, keeping the hue.

  • For text on black

    #87CEFA 12.23:1

    It already reaches 12.23:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #87CEFA live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #87CEFA

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #87CEFA sits at step 300.

  1. 50#EBF7FF
    White
    1.08
    Black
    19.28
  2. 100#D7EFFF
    White
    1.18
    Black
    17.68
  3. 200#ADDFFF
    White
    1.42
    Black
    14.77
  4. 300This color#87CEFA
    White
    1.71
    Black
    12.23
  5. 400#66AAD4
    White
    2.54
    Black
    8.26
  6. 500#488EB8
    White
    3.59
    Black
    5.83
  7. 600#2F769E
    White
    4.99
    Black
    4.20
  8. 700#145F84
    White
    7.00
    Black
    2.99
  9. 800#004565
    White
    10.29
    Black
    2.03
  10. 900#002D43
    White
    14.41
    Black
    1.45
  11. 950#001927
    White
    17.97
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #87CEFA can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.104; #87CEFA uses 91% of it. Display P3, which many recent phones and laptops show, reaches 0.113 there: 9% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.095
sRGB edge
0.104
Display P3 edge
0.113
Rec. 2020 edge
0.114
Dominant wavelength
482 nm
Excitation purity
31%
Chromaticity
x 0.2415, y 0.2752
  • This color#87CEFA
  • Most vivid in sRGB#80CFFF
  • Most vivid in Display P3oklch(0.821 0.113 236.8)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #87cefa;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.5519 0.8047 1); }
}

Mixing

Mixing #87CEFA

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#C3E7FD
  • OKLab50%#C5E7FD
  • OKLCH50%#C5E7FD

Black #000000

  • sRGB50%#44677D
  • OKLab50%#314E61
  • OKLCH50%#314E61

Its complement #F4B588

  • sRGB50%#BEC2C1
  • OKLab50%#C4C4C4
  • OKLCH50%#E5AFE5
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #87cefa, white);
color: color-mix(in oklch, #87cefa 50%, white);

In use

#87CEFA in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:112.23:1 Passes
  • Link and body-size textText, 4.5:11.71:1 Fails
  • Large headingLarge text, 3:11.71:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.71:1 Fails

For text on this page, the nearest shade that passes is #357CA5 4.58:1

Dark page

  • Button labelText, 4.5:112.23:1 Passes
  • Link and body-size textText, 4.5:110.91:1 Passes
  • Large headingLarge text, 3:110.91:1 Passes
  • Icons, borders and focus ringsNon-text, 3:110.91:1 Passes

Color vision

How #87CEFA looks with color blindness

Achromatopsia changes it most, ΔE2000 18.7; deuteranopia changes it least, 12.1.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #BACDFC ΔE2000 12.7

    Distinct

    Reads as pale muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #AAC0F9 ΔE2000 12.1

    Distinct

    Reads as light muted blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #53D9DC ΔE2000 16.6

    Distinct

    Reads as light soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #C6C6C6 ΔE2000 18.7

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #F4B588. Their lightness contrast is only 1.03:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#87CEFA · #F4B58839.7Stays distinct
Protanopia#BACDFC · #C7BA8537.0Stays distinct
Deuteranopia#AAC0F9 · #D6C88841.6Stays distinct
Tritanopia#53D9DC · #FFA9A948.7Stays distinct
Achromatopsia#C6C6C6 · #C2C2C21.0Easily confused

Harmony

Color harmonies for #87CEFA

Its complement is #F4B588, a pale muted orange, on the warm side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#87CEFA
  • Complement#F4B588

Complementary

Open in Harmony Studio
  • −30°#73D6E3
  • Base#87CEFA
  • +30°#AAC3FF
  • Base#87CEFA
  • +120°#F7ABC5
  • +240°#C0CD85
  • Base#87CEFA
  • +150°#FCADA4
  • +210°#DFC17B

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-lightskyblue: #87cefa;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        lightskyblue: '#87cefa',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-lightskyblue: oklch(0.821 0.095 236.8);
}

Design token (W3C DTCG)

{
  "color": {
    "lightskyblue": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.5294, 0.8078, 0.9804],
        "hex": "#87cefa"
      },
      "$description": "CSS named color lightskyblue"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let lightskyblue = Color(.sRGB, red: 0.529, green: 0.808, blue: 0.980, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Lightskyblue = Color(0xFF87CEFA)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #87CEFA in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.