#D787CF#D787CF

#D787CF is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.0% C 0.134 H 330.5°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#D787CF
RGBrgb(215, 135, 207)
HSLhsl(306, 50%, 69%)
HSVhsv(306, 37%, 84%)
CMYKcmyk(0%, 37.2%, 3.7%, 15.7%)
CIE-LABlab(66.73, 41.42, -24.45)
CIE-LCHlch(66.73, 48.09, 329.45°)
OKLaboklab(72.98% 0.1168 -0.0662)
OKLCHoklch(72.98% 0.134 330.5)
XYZxyz(47.9501, 36.2822, 63.4968)
Luminance0.3628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787CF #87D78F
analogous
#B787D7 #D787CF #D787A7
triadic
#D787CF #CFD787 #87CFD7
tetradic
#D787CF #D7B787 #87D78F #87A7D7
square
#D787CF #D7B787 #87D78F #87A7D7
split-complementary
#D787CF #A7D787 #87D7B7
monochromatic
#AB399F #C859BD #D787CF #E6B5E1 #F6E3F4

Accessibility & contrast

On white

2.54
#D787CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#D787CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787CF
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787CF#FFFFFF#000000##000000
##D787CF1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#849CD2
Deuteranopia (green-blind)
#98A6CC
Tritanopia (blue-blind)
#DD8DA2
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d787cf;
/* rgb */ color: rgb(215, 135, 207);
/* oklch */ color: oklch(73.0% 0.134 330.5);
Tailwind
colors: {
  custom: {
    50: '#e4abdd',
    500: '#d787cf',
    950: '#000000',
  },
}
SCSS
$custom: #d787cf;
$custom-light: #e4abdd;
$custom-dark: #000000;
JSON
{
  "hex": "#d787cf",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 207
  },
  "hsl": {
    "h": 306,
    "s": 50,
    "l": 68.627
  },
  "oklch": {
    "l": 0.72982,
    "c": 0.13424,
    "h": 330.5
  },
  "luminance": 0.3628
}

Semantic roles & 50–950 ramp

primary
#D787CF
secondary
#D1E9D3
accent
#BD3728
background
#FEFAFD
surface
#FCF4FB
border
#D5CED4
text
#161015
muted
#847F83

Preview Lab

Preview with #D787CF

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

Preview Lab → · Contrast checker → · Palette generator →

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