#D787CB#D787CB

#D787CB is a light, vivid purple. Relative luminance 0.361; OKLCH L 72.8% C 0.131 H 332.4°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#D787CB
RGBrgb(215, 135, 203)
HSLhsl(309, 50%, 69%)
HSVhsv(309, 37%, 84%)
CMYKcmyk(0%, 37.2%, 5.6%, 15.7%)
CIE-LABlab(66.59, 40.71, -22.44)
CIE-LCHlch(66.59, 46.49, 331.14°)
OKLaboklab(72.82% 0.1158 -0.0605)
OKLCHoklch(72.82% 0.131 332.4)
XYZxyz(47.4673, 36.0891, 60.9539)
Luminance0.3609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787CB #87D793
analogous
#BB87D7 #D787CB #D787A3
triadic
#D787CB #CBD787 #87CBD7
tetradic
#D787CB #D7BB87 #87D793 #87A3D7
square
#D787CB #D7BB87 #87D793 #87A3D7
split-complementary
#D787CB #A3D787 #87D7BB
monochromatic
#AB399A #C859B7 #D787CB #E6B5DF #F6E3F3

Accessibility & contrast

On white

2.56
#D787CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#D787CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787CB
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787CB#FFFFFF#000000##000000
##D787CB1.002.568.228.22
#FFFFFF2.561.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#859BCE
Deuteranopia (green-blind)
#9AA6C9
Tritanopia (blue-blind)
#DE8CA0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d787cb;
/* rgb */ color: rgb(215, 135, 203);
/* oklch */ color: oklch(72.8% 0.131 332.4);
Tailwind
colors: {
  custom: {
    50: '#e4abdb',
    500: '#d787cb',
    950: '#000000',
  },
}
SCSS
$custom: #d787cb;
$custom-light: #e4abdb;
$custom-dark: #000000;
JSON
{
  "hex": "#d787cb",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 309,
    "s": 50,
    "l": 68.627
  },
  "oklch": {
    "l": 0.72823,
    "c": 0.13064,
    "h": 332.4
  },
  "luminance": 0.36087
}

Semantic roles & 50–950 ramp

primary
#D787CB
secondary
#D1E9D5
accent
#BD3F28
background
#FEFAFD
surface
#FCF4FB
border
#D5CED4
text
#161015
muted
#847F83

Preview Lab

Preview with #D787CB

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D787CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva