#D787EB#D787EB

#D787EB is a light, vivid purple. Relative luminance 0.378; OKLCH L 74.2% C 0.162 H 319.4°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#D787EB
RGBrgb(215, 135, 235)
HSLhsl(288, 71%, 73%)
HSVhsv(288, 43%, 92%)
CMYKcmyk(8.5%, 42.6%, 0%, 7.8%)
CIE-LABlab(67.85, 46.66, -38.23)
CIE-LCHlch(67.85, 60.32, 320.67°)
OKLaboklab(74.19% 0.1229 -0.1053)
OKLCHoklch(74.19% 0.162 319.4)
XYZxyz(51.6818, 37.7749, 83.1500)
Luminance0.3777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787EB #9BEB87
analogous
#A587EB #D787EB #EB87CD
triadic
#D787EB #EBD787 #87EBD7
tetradic
#D787EB #EBA587 #9BEB87 #87CDEB
square
#D787EB #EBA587 #9BEB87 #87CDEB
split-complementary
#D787EB #CDEB87 #87EBA5
monochromatic
#B123D4 #C653E2 #D787EB #E8BBF4 #F6E5FB

Accessibility & contrast

On white

2.45
#D787EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#D787EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787EB
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787EB#FFFFFF#000000##000000
##D787EB1.002.458.558.55
#FFFFFF2.451.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A0EF
Deuteranopia (green-blind)
#8EA8E8
Tritanopia (blue-blind)
#D894AE
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #d787eb;
/* rgb */ color: rgb(215, 135, 235);
/* oklch */ color: oklch(74.2% 0.162 319.4);
Tailwind
colors: {
  custom: {
    50: '#e5acf1',
    500: '#d787eb',
    950: '#000000',
  },
}
SCSS
$custom: #d787eb;
$custom-light: #e5acf1;
$custom-dark: #000000;
JSON
{
  "hex": "#d787eb",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 288,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74191,
    "c": 0.16188,
    "h": 319.4
  },
  "luminance": 0.37773
}

Semantic roles & 50–950 ramp

primary
#D787EB
secondary
#DEF2D9
accent
#D31239
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D787EB

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

Preview Lab → · Contrast checker → · Palette generator →

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