#D787CD#D787CD

#D787CD is a light, vivid purple. Relative luminance 0.362; OKLCH L 72.9% C 0.132 H 331.4°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#D787CD
RGBrgb(215, 135, 205)
HSLhsl(308, 50%, 69%)
HSVhsv(308, 37%, 84%)
CMYKcmyk(0%, 37.2%, 4.7%, 15.7%)
CIE-LABlab(66.66, 41.06, -23.44)
CIE-LCHlch(66.66, 47.28, 330.28°)
OKLaboklab(72.9% 0.1163 -0.0634)
OKLCHoklch(72.9% 0.132 331.4)
XYZxyz(47.7072, 36.1851, 62.2173)
Luminance0.3618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787CD #87D791
analogous
#B987D7 #D787CD #D787A5
triadic
#D787CD #CDD787 #87CDD7
tetradic
#D787CD #D7B987 #87D791 #87A5D7
square
#D787CD #D7B987 #87D791 #87A5D7
split-complementary
#D787CD #A5D787 #87D7B9
monochromatic
#AB399C #C859BA #D787CD #E6B5E0 #F6E3F3

Accessibility & contrast

On white

2.55
#D787CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#D787CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787CD
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787CD#FFFFFF#000000##000000
##D787CD1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#859BD0
Deuteranopia (green-blind)
#99A6CA
Tritanopia (blue-blind)
#DD8CA1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d787cd;
/* rgb */ color: rgb(215, 135, 205);
/* oklch */ color: oklch(72.9% 0.132 331.4);
Tailwind
colors: {
  custom: {
    50: '#e4abdc',
    500: '#d787cd',
    950: '#000000',
  },
}
SCSS
$custom: #d787cd;
$custom-light: #e4abdc;
$custom-dark: #000000;
JSON
{
  "hex": "#d787cd",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 307.5,
    "s": 50,
    "l": 68.627
  },
  "oklch": {
    "l": 0.72902,
    "c": 0.13243,
    "h": 331.4
  },
  "luminance": 0.36183
}

Semantic roles & 50–950 ramp

primary
#D787CD
secondary
#D1E9D4
accent
#BD3B28
background
#FEFAFD
surface
#FCF4FB
border
#D5CED4
text
#161015
muted
#847F83

Preview Lab

Preview with #D787CD

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

Preview Lab → · Contrast checker → · Palette generator →

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