#D787CC#D787CC

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

Color values

HEX#D787CC
RGBrgb(215, 135, 204)
HSLhsl(308, 50%, 69%)
HSVhsv(308, 37%, 84%)
CMYKcmyk(0%, 37.2%, 5.1%, 15.7%)
CIE-LABlab(66.62, 40.89, -22.94)
CIE-LCHlch(66.62, 46.88, 330.70°)
OKLaboklab(72.86% 0.116 -0.0619)
OKLCHoklch(72.86% 0.132 331.9)
XYZxyz(47.5869, 36.1369, 61.5836)
Luminance0.3614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787CC #87D792
analogous
#BA87D7 #D787CC #D787A4
triadic
#D787CC #CCD787 #87CCD7
tetradic
#D787CC #D7BA87 #87D792 #87A4D7
square
#D787CC #D7BA87 #87D792 #87A4D7
split-complementary
#D787CC #A4D787 #87D7BA
monochromatic
#AB399B #C859B8 #D787CC #E6B5E0 #F6E3F3

Accessibility & contrast

On white

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

On black

8.23
#D787CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787CC
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787CC#FFFFFF#000000##000000
##D787CC1.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d787cc;
/* rgb */ color: rgb(215, 135, 204);
/* oklch */ color: oklch(72.9% 0.132 331.9);
Tailwind
colors: {
  custom: {
    50: '#e4abdb',
    500: '#d787cc',
    950: '#000000',
  },
}
SCSS
$custom: #d787cc;
$custom-light: #e4abdb;
$custom-dark: #000000;
JSON
{
  "hex": "#d787cc",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 308.25,
    "s": 50,
    "l": 68.627
  },
  "oklch": {
    "l": 0.72863,
    "c": 0.13153,
    "h": 331.9
  },
  "luminance": 0.36135
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D787CC

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

Preview Lab → · Contrast checker → · Palette generator →

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