CSS named color

Pink #FFC0CB

The CSS keyword pink is #FFC0CB. It is a pale muted pink in the pink family. In OKLCH it sits at lightness 0.868, chroma 0.074 and hue 7.1°.

Relative luminance
0.6327
OKLCH L · C · h
0.868 · 0.074 · 7.1
Best text
Black 13.65:1
Hue family
Pink

#FFC0CB color codes

HEX
#FFC0CB
RGB
rgb(255, 192, 203)
HSL
hsl(350, 100%, 88%)
OKLCH
oklch(0.868 0.074 7.1)
OKLab
oklab(0.868 0.073 0.009)
CIELAB (D65)
L* 83.59, a* 24.14, b* 3.33
XYZ (D65)
X 70.87, Y 63.27, Z 64.97
CMYK (naive)
cmyk(0%, 25%, 20%, 0%)

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 #FFC0CB accessible?

Black text on it reaches 13.65:1, passing AAA. White text fails at 1.53: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

    13.65:1

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

    1.53:1

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

    13.65:1

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

    1.53:1

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

Nearest versions that pass 4.5:1

  • For text on white

    #9F6772 4.50:1

    Darkening its OKLCH lightness from 0.87 to 0.58 reaches 4.50:1 on white, keeping the hue.

  • For text on black

    #FFC0CB 13.65:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #FFC0CB 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 #FFC0CB

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

  1. 50#FFF1F3
    White
    1.09
    Black
    19.12
  2. 100#FFE3E7
    White
    1.20
    Black
    17.39
  3. 200This color#FFC0CB
    White
    1.53
    Black
    13.65
  4. 300#E6ACB6
    White
    1.91
    Black
    10.94
  5. 400#C98F9A
    White
    2.66
    Black
    7.87
  6. 500#AD747E
    White
    3.76
    Black
    5.57
  7. 600#935C67
    White
    5.29
    Black
    3.96
  8. 700#7A4751
    White
    7.37
    Black
    2.84
  9. 800#5D2F39
    White
    10.87
    Black
    1.93
  10. 900#421A23
    White
    14.96
    Black
    1.40
  11. 950#2A0912
    White
    18.32
    Black
    1.14

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

Gamut

How vivid #FFC0CB can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.074; #FFC0CB uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.096 there: 31% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.074
sRGB edge
0.074
Display P3 edge
0.096
Rec. 2020 edge
0.143
Dominant wavelength
Complementary 495 nm
Excitation purity
12%
Chromaticity
x 0.3559, y 0.3178
  • This color#FFC0CB
  • Most vivid in sRGB#FFC0CB
  • Most vivid in Display P3oklch(0.868 0.096 7.1)

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

Use the wider color where screens show it
.accent {
  color: #ffc0cb;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 1 0.7404 0.7874); }
}

Mixing

Mixing #FFC0CB

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%#FFE0E5
  • OKLab50%#FFE0E5
  • OKLCH50%#FFE0E5

Black #000000

  • sRGB50%#806066
  • OKLab50%#63494D
  • OKLCH50%#63494D

Its complement #9BE4DC

  • sRGB50%#CDD2D4
  • OKLab50%#D3D3D4
  • OKLCH50%#C8D0FF
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #ffc0cb, white);
color: color-mix(in oklch, #ffc0cb 50%, white);

In use

#FFC0CB 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:113.65:1 Passes
  • Link and body-size textText, 4.5:11.53:1 Fails
  • Large headingLarge text, 3:11.53:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.53:1 Fails

For text on this page, the nearest shade that passes is #9F6772 4.50:1

Dark page

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

Color vision

How #FFC0CB looks with color blindness

Deuteranopia changes it most, ΔE2000 23.3; tritanopia changes it least, 1.6.

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

    #C9CACB ΔE2000 20.1

    Distinct

    Reads as light gray

  • Deuteranopia

    No working green (medium-wavelength) cones

    #D8D5CA ΔE2000 23.3

    Distinct

    Reads as light gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #FFBCC4 ΔE2000 1.6

    Very close

    Reads as pale muted pink

  • Achromatopsia

    No cone color vision; lightness only

    #D0D0D0 ΔE2000 19.7

    Distinct

    Reads as light gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#FFC0CB · #9BE4DC44.0Stays distinct
Protanopia#C9CACB · #DDDCDC4.5Easily confused
Deuteranopia#D8D5CA · #CFD2DD10.9Stays distinct
Tritanopia#FFBCC4 · #82E7E145.8Stays distinct
Achromatopsia#D0D0D0 · #D7D7D71.6Easily confused

Harmony

Color harmonies for #FFC0CB

Its complement is #9BE4DC, a pale muted cyan, on the cool 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#FFC0CB
  • Complement#9BE4DC

Complementary

Open in Harmony Studio
  • −30°#F4C2E5
  • Base#FFC0CB
  • +30°#FFC4B2
  • Base#FFC0CB
  • +120°#C6DDA9
  • +240°#B0D9FF
  • Base#FFC0CB
  • +150°#ACE3C0
  • +210°#9BE0F3

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-pink: #ffc0cb;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        pink: '#ffc0cb',
      },
    },
  },
};

Tailwind v4 theme

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

@theme {
  --color-pink: oklch(0.868 0.074 7.1);
}

Design token (W3C DTCG)

{
  "color": {
    "pink": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [1, 0.7529, 0.7961],
        "hex": "#ffc0cb"
      },
      "$description": "CSS named color pink"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let pink = Color(.sRGB, red: 1.000, green: 0.753, blue: 0.796, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Pink = Color(0xFFFFC0CB)
}

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 #FFC0CB in the tools

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