#D787DF#D787DF

#D787DF is a light, vivid purple. Relative luminance 0.371; OKLCH L 73.7% C 0.150 H 323.7°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#D787DF
RGBrgb(215, 135, 223)
HSLhsl(295, 58%, 70%)
HSVhsv(295, 39%, 87%)
CMYKcmyk(3.6%, 39.5%, 0%, 12.5%)
CIE-LABlab(67.36, 44.35, -32.38)
CIE-LCHlch(67.36, 54.92, 323.87°)
OKLaboklab(73.65% 0.1206 -0.0886)
OKLCHoklch(73.65% 0.15 323.7)
XYZxyz(50.0062, 37.1047, 74.3255)
Luminance0.3710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787DF #8FDF87
analogous
#AB87DF #D787DF #DF87BB
triadic
#D787DF #DFD787 #87DFD7
tetradic
#D787DF #DFAB87 #8FDF87 #87BBDF
square
#D787DF #DFAB87 #8FDF87 #87BBDF
split-complementary
#D787DF #BBDF87 #87DFAB
monochromatic
#AE32BA #C757D2 #D787DF #E7B7EC #F7E7F9

Accessibility & contrast

On white

2.49
#D787DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#D787DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787DF
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787DF#FFFFFF#000000##000000
##D787DF1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E9EE2
Deuteranopia (green-blind)
#93A7DC
Tritanopia (blue-blind)
#DA91A9
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d787df;
/* rgb */ color: rgb(215, 135, 223);
/* oklch */ color: oklch(73.7% 0.150 323.7);
Tailwind
colors: {
  custom: {
    50: '#e5abe9',
    500: '#d787df',
    950: '#000000',
  },
}
SCSS
$custom: #d787df;
$custom-light: #e5abe9;
$custom-dark: #000000;
JSON
{
  "hex": "#d787df",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 294.545,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.73653,
    "c": 0.14962,
    "h": 323.7
  },
  "luminance": 0.37103
}

Semantic roles & 50–950 ramp

primary
#D787DF
secondary
#D7EDD5
accent
#C5202F
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D787DF

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

Preview Lab → · Contrast checker → · Palette generator →

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