#D787EF#D787EF

#D787EF is a light, vivid purple. Relative luminance 0.380; OKLCH L 74.4% C 0.166 H 318.1°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#D787EF
RGBrgb(215, 135, 239)
HSLhsl(286, 76%, 73%)
HSVhsv(286, 44%, 94%)
CMYKcmyk(10%, 43.5%, 0%, 6.3%)
CIE-LABlab(68.03, 47.45, -40.16)
CIE-LCHlch(68.03, 62.17, 319.75°)
OKLaboklab(74.38% 0.1236 -0.1109)
OKLCHoklch(74.38% 0.166 318.1)
XYZxyz(52.2662, 38.0087, 86.2278)
Luminance0.3801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D787EF #9FEF87
analogous
#A387EF #D787EF #EF87D3
triadic
#D787EF #EFD787 #87EFD7
tetradic
#D787EF #EFA387 #9FEF87 #87D3EF
square
#D787EF #EFA387 #9FEF87 #87D3EF
split-complementary
#D787EF #D3EF87 #87EFA3
monochromatic
#B21EDE #C551E8 #D787EF #E9BDF6 #F6E4FB

Accessibility & contrast

On white

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

On black

8.60
#D787EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D787EF
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D787EF#FFFFFF#000000##000000
##D787EF1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A0F3
Deuteranopia (green-blind)
#8CA9EC
Tritanopia (blue-blind)
#D795B0
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d787ef;
/* rgb */ color: rgb(215, 135, 239);
/* oklch */ color: oklch(74.4% 0.166 318.1);
Tailwind
colors: {
  custom: {
    50: '#e5acf4',
    500: '#d787ef',
    950: '#000000',
  },
}
SCSS
$custom: #d787ef;
$custom-light: #e5acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#d787ef",
  "rgb": {
    "r": 215,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 286.154,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.74377,
    "c": 0.16608,
    "h": 318.1
  },
  "luminance": 0.38007
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D787EF

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

Preview Lab → · Contrast checker → · Palette generator →

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