#DB87EF#DB87EF

#DB87EF is a light, vivid purple. Relative luminance 0.386; OKLCH L 74.8% C 0.168 H 319.7°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#DB87EF
RGBrgb(219, 135, 239)
HSLhsl(288, 76%, 73%)
HSVhsv(288, 44%, 94%)
CMYKcmyk(8.4%, 43.5%, 0%, 6.3%)
CIE-LABlab(68.48, 48.60, -39.43)
CIE-LCHlch(68.48, 62.58, 320.95°)
OKLaboklab(74.81% 0.1282 -0.1087)
OKLCHoklch(74.81% 0.168 319.7)
XYZxyz(53.4554, 38.6219, 86.2835)
Luminance0.3862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87EF #9BEF87
analogous
#A787EF #DB87EF #EF87CF
triadic
#DB87EF #EFDB87 #87EFDB
tetradic
#DB87EF #EFA787 #9BEF87 #87CFEF
square
#DB87EF #EFA787 #9BEF87 #87CFEF
split-complementary
#DB87EF #CFEF87 #87EFA7
monochromatic
#B91EDE #CB51E8 #DB87EF #EBBDF6 #F7E4FB

Accessibility & contrast

On white

2.41
#DB87EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#DB87EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87EF
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87EF#FFFFFF#000000##000000
##DB87EF1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A1F3
Deuteranopia (green-blind)
#8EAAEC
Tritanopia (blue-blind)
#DC94B0
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #db87ef;
/* rgb */ color: rgb(219, 135, 239);
/* oklch */ color: oklch(74.8% 0.168 319.7);
Tailwind
colors: {
  custom: {
    50: '#e8acf4',
    500: '#db87ef',
    950: '#000000',
  },
}
SCSS
$custom: #db87ef;
$custom-light: #e8acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#db87ef",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 288.462,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.74812,
    "c": 0.1681,
    "h": 319.7
  },
  "luminance": 0.3862
}

Semantic roles & 50–950 ramp

primary
#DB87EF
secondary
#DDF3D8
accent
#D90D34
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #DB87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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