CSS named color

Light Pink #FFB6C1

The CSS keyword lightpink is #FFB6C1. It is a pale muted pink in the pink family. In OKLCH it sits at lightness 0.847, chroma 0.086 and hue 9.1°.

Relative luminance
0.5857
OKLCH L · C · h
0.847 · 0.086 · 9.1
Best text
Black 12.71:1
Hue family
Pink

#FFB6C1 color codes

HEX
#FFB6C1
RGB
rgb(255, 182, 193)
HSL
hsl(351, 100%, 86%)
OKLCH
oklch(0.847 0.086 9.1)
OKLab
oklab(0.847 0.085 0.014)
CIELAB (D65)
L* 81.05, a* 27.96, b* 5.04
XYZ (D65)
X 67.59, Y 58.57, Z 58.19
CMYK (naive)
cmyk(0%, 29%, 24%, 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 #FFB6C1 accessible?

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

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

    1.65:1

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

    12.71:1

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

    1.65:1

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

Nearest versions that pass 4.5:1

  • For text on white

    #A5646F 4.51:1

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

  • For text on black

    #FFB6C1 12.71:1

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

Checking another pair? Use the Contrast Checker.

Studio

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

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #FFB6C1 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#FFB6C1
    White
    1.65
    Black
    12.71
  4. 300#ECA9B3
    White
    1.92
    Black
    10.89
  5. 400#D08C96
    White
    2.66
    Black
    7.87
  6. 500#B3707B
    White
    3.80
    Black
    5.52
  7. 600#995964
    White
    5.29
    Black
    3.96
  8. 700#7F434E
    White
    7.45
    Black
    2.81
  9. 800#622C37
    White
    10.85
    Black
    1.93
  10. 900#451721
    White
    15.02
    Black
    1.39
  11. 950#2D0510
    White
    18.40
    Black
    1.14

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

Gamut

How vivid #FFB6C1 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.086; #FFB6C1 uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.112 there: 30% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.086
sRGB edge
0.086
Display P3 edge
0.112
Rec. 2020 edge
0.165
Dominant wavelength
Complementary 494 nm
Excitation purity
14%
Chromaticity
x 0.3667, y 0.3177
  • This color#FFB6C1
  • Most vivid in sRGB#FFB6C1
  • Most vivid in Display P3oklch(0.847 0.112 9.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: #ffb6c1;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 1 0.699 0.7454); }
}

Mixing

Mixing #FFB6C1

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

Black #000000

  • sRGB50%#805B61
  • OKLab50%#634449
  • OKLCH50%#634449

Its complement #87DFD8

  • sRGB50%#C3CBCD
  • OKLab50%#CDCDCD
  • OKLCH50%#C1C8FF
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #ffb6c1, white);
color: color-mix(in oklch, #ffb6c1 50%, white);

In use

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

For text on this page, the nearest shade that passes is #A5646F 4.51:1

Dark page

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

Color vision

How #FFB6C1 looks with color blindness

Deuteranopia changes it most, ΔE2000 24.8; tritanopia changes it least, 1.7.

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

    #C1C1C1 ΔE2000 21.2

    Distinct

    Reads as light gray

  • Deuteranopia

    No working green (medium-wavelength) cones

    #D3CEC0 ΔE2000 24.8

    Distinct

    Reads as light gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #FFB0BA ΔE2000 1.7

    Very close

    Reads as pale muted pink

  • Achromatopsia

    No cone color vision; lightness only

    #C9C9C9 ΔE2000 21.1

    Distinct

    Reads as light gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#FFB6C1 · #87DFD846.2Stays distinct
Protanopia#C1C1C1 · #D6D7D85.4Harder to tell apart
Deuteranopia#D3CEC0 · #C6CBD913.5Stays distinct
Tritanopia#FFB0BA · #63E3DD50.2Stays distinct
Achromatopsia#C9C9C9 · #D0D0D01.7Easily confused

Harmony

Color harmonies for #FFB6C1

Its complement is #87DFD8, 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#FFB6C1
  • Complement#87DFD8

Complementary

Open in Harmony Studio
  • −30°#F3B8E0
  • Base#FFB6C1
  • +30°#FFBAA4
  • Base#FFB6C1
  • +120°#BBD89D
  • +240°#A5D2FF
  • Base#FFB6C1
  • +150°#9CDFB9
  • +210°#8ADBF3

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-lightpink: #ffb6c1;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  --color-lightpink: oklch(0.847 0.086 9.1);
}

Design token (W3C DTCG)

{
  "color": {
    "lightpink": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [1, 0.7137, 0.7569],
        "hex": "#ffb6c1"
      },
      "$description": "CSS named color lightpink"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let lightpink = Color(.sRGB, red: 1.000, green: 0.714, blue: 0.757, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Lightpink = Color(0xFFFFB6C1)
}

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

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