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.
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.
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.
- 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.
.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
/* 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.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #FFC0CB · #9BE4DC | 44.0 | Stays distinct |
| Protanopia | #C9CACB · #DDDCDC | 4.5 | Easily confused |
| Deuteranopia | #D8D5CA · #CFD2DD | 10.9 | Stays distinct |
| Tritanopia | #FFBCC4 · #82E7E1 | 45.8 | Stays distinct |
| Achromatopsia | #D0D0D0 · #D7D7D7 | 1.6 | Easily 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
Analogous
Open in Harmony Studio- Base#FFC0CB
- +120°#C6DDA9
- +240°#B0D9FF
Triadic
Open in Harmony Studio- Base#FFC0CB
- +150°#ACE3C0
- +210°#9BE0F3
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-pink: #ffc0cb;
}
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
pink: '#ffc0cb',
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
--color-pink: oklch(0.868 0.074 7.1);
}
{
"color": {
"pink": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [1, 0.7529, 0.7961],
"hex": "#ffc0cb"
},
"$description": "CSS named color pink"
}
}
}
import SwiftUI
enum Palette {
static let pink = Color(.sRGB, red: 1.000, green: 0.753, blue: 0.796, opacity: 1)
}
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.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.