#D787EA#D787EA

#D787EA is a light, vivid purple. Relative luminance 0.377; OKLCH L 74.1% C 0.161 H 319.7°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#D787EA
RGBrgb(215, 135, 234)
HSLhsl(288, 70%, 72%)
HSVhsv(288, 42%, 92%)
CMYKcmyk(8.1%, 42.3%, 0%, 8.2%)
CIE-LABlab(67.81, 46.47, -37.75)
CIE-LCHlch(67.81, 59.87, 320.91°)
OKLaboklab(74.15% 0.1227 -0.1039)
OKLCHoklch(74.15% 0.161 319.7)
XYZxyz(51.5377, 37.7173, 82.3913)
Luminance0.3772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787EA #9AEA87
analogous
#A687EA #D787EA #EA87CB
triadic
#D787EA #EAD787 #87EAD7
tetradic
#D787EA #EAA687 #9AEA87 #87CBEA
square
#D787EA #EAA687 #9AEA87 #87CBEA
split-complementary
#D787EA #CBEA87 #87EAA6
monochromatic
#B125D2 #C653E1 #D787EA #E8BBF3 #F6E5FA

Accessibility & contrast

On white

2.46
#D787EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#D787EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787EA
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787EA#FFFFFF#000000##000000
##D787EA1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A0EE
Deuteranopia (green-blind)
#8EA8E7
Tritanopia (blue-blind)
#D893AE
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #d787ea;
/* rgb */ color: rgb(215, 135, 234);
/* oklch */ color: oklch(74.1% 0.161 319.7);
Tailwind
colors: {
  custom: {
    50: '#e5acf1',
    500: '#d787ea',
    950: '#000000',
  },
}
SCSS
$custom: #d787ea;
$custom-light: #e5acf1;
$custom-dark: #000000;
JSON
{
  "hex": "#d787ea",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 288.485,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.74145,
    "c": 0.16084,
    "h": 319.7
  },
  "luminance": 0.37716
}

Semantic roles & 50–950 ramp

primary
#D787EA
secondary
#DEF2D9
accent
#D21338
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D787EA

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

Preview Lab → · Contrast checker → · Palette generator →

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