#D787EE#D787EE

#D787EE is a light, vivid purple. Relative luminance 0.379; OKLCH L 74.3% C 0.165 H 318.4°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#D787EE
RGBrgb(215, 135, 238)
HSLhsl(287, 75%, 73%)
HSVhsv(287, 43%, 93%)
CMYKcmyk(9.7%, 43.3%, 0%, 6.7%)
CIE-LABlab(67.98, 47.25, -39.68)
CIE-LCHlch(67.98, 61.70, 319.98°)
OKLaboklab(74.33% 0.1235 -0.1095)
OKLCHoklch(74.33% 0.165 318.4)
XYZxyz(52.1188, 37.9497, 85.4519)
Luminance0.3795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787EE #9EEE87
analogous
#A387EE #D787EE #EE87D1
triadic
#D787EE #EED787 #87EED7
tetradic
#D787EE #EEA387 #9EEE87 #87D1EE
square
#D787EE #EEA387 #9EEE87 #87D1EE
split-complementary
#D787EE #D1EE87 #87EEA3
monochromatic
#B11FDC #C551E6 #D787EE #E9BDF6 #F6E4FB

Accessibility & contrast

On white

2.44
#D787EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#D787EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787EE
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787EE#FFFFFF#000000##000000
##D787EE1.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A0F2
Deuteranopia (green-blind)
#8CA8EB
Tritanopia (blue-blind)
#D795AF
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d787ee;
/* rgb */ color: rgb(215, 135, 238);
/* oklch */ color: oklch(74.3% 0.165 318.4);
Tailwind
colors: {
  custom: {
    50: '#e5acf4',
    500: '#d787ee',
    950: '#000000',
  },
}
SCSS
$custom: #d787ee;
$custom-light: #e5acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#d787ee",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 286.602,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.7433,
    "c": 0.16502,
    "h": 318.4
  },
  "luminance": 0.37948
}

Semantic roles & 50–950 ramp

primary
#D787EE
secondary
#DEF3D8
accent
#D70E3B
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D787EE

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

Preview Lab → · Contrast checker → · Palette generator →

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