#D787DC#D787DC

#D787DC is a light, vivid purple. Relative luminance 0.369; OKLCH L 73.5% C 0.147 H 324.9°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#D787DC
RGBrgb(215, 135, 220)
HSLhsl(296, 55%, 70%)
HSVhsv(296, 39%, 86%)
CMYKcmyk(2.3%, 38.6%, 0%, 13.7%)
CIE-LABlab(67.24, 43.79, -30.91)
CIE-LCHlch(67.24, 53.60, 324.79°)
OKLaboklab(73.52% 0.1199 -0.0844)
OKLCHoklch(73.52% 0.147 324.9)
XYZxyz(49.6054, 36.9443, 72.2143)
Luminance0.3694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787DC #8CDC87
analogous
#AD87DC #D787DC #DC87B6
triadic
#D787DC #DCD787 #87DCD7
tetradic
#D787DC #DCAD87 #8CDC87 #87B6DC
square
#D787DC #DCAD87 #8CDC87 #87B6DC
split-complementary
#D787DC #B6DC87 #87DCAD
monochromatic
#AD35B4 #C758CE #D787DC #E7B6EA #F7E6F8

Accessibility & contrast

On white

2.50
#D787DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#D787DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787DC
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787DC#FFFFFF#000000##000000
##D787DC1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F9DDF
Deuteranopia (green-blind)
#94A7D9
Tritanopia (blue-blind)
#DB90A7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d787dc;
/* rgb */ color: rgb(215, 135, 220);
/* oklch */ color: oklch(73.5% 0.147 324.9);
Tailwind
colors: {
  custom: {
    50: '#e5abe7',
    500: '#d787dc',
    950: '#000000',
  },
}
SCSS
$custom: #d787dc;
$custom-light: #e5abe7;
$custom-dark: #000000;
JSON
{
  "hex": "#d787dc",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 296.471,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.73524,
    "c": 0.14664,
    "h": 324.9
  },
  "luminance": 0.36942
}

Semantic roles & 50–950 ramp

primary
#D787DC
secondary
#D5ECD3
accent
#C2232D
background
#FEFAFE
surface
#FCF4FC
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D787DC

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

Preview Lab → · Contrast checker → · Palette generator →

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