#DB87EC#DB87EC

#DB87EC is a light, vivid purple. Relative luminance 0.384; OKLCH L 74.7% C 0.165 H 320.7°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#DB87EC
RGBrgb(219, 135, 236)
HSLhsl(290, 73%, 73%)
HSVhsv(290, 43%, 93%)
CMYKcmyk(7.2%, 42.8%, 0%, 7.5%)
CIE-LABlab(68.35, 48.02, -37.98)
CIE-LCHlch(68.35, 61.22, 321.66°)
OKLaboklab(74.67% 0.1277 -0.1045)
OKLCHoklch(74.67% 0.165 320.7)
XYZxyz(53.0159, 38.4461, 83.9688)
Luminance0.3844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87EC #98EC87
analogous
#A887EC #DB87EC #EC87CA
triadic
#DB87EC #ECDB87 #87ECDB
tetradic
#DB87EC #ECA887 #98EC87 #87CAEC
square
#DB87EC #ECA887 #98EC87 #87CAEC
split-complementary
#DB87EC #CAEC87 #87ECA8
monochromatic
#B822D7 #CB52E4 #DB87EC #EBBCF4 #F7E5FB

Accessibility & contrast

On white

2.42
#DB87EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#DB87EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87EC
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87EC#FFFFFF#000000##000000
##DB87EC1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A1F0
Deuteranopia (green-blind)
#90AAE9
Tritanopia (blue-blind)
#DD93AE
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #db87ec;
/* rgb */ color: rgb(219, 135, 236);
/* oklch */ color: oklch(74.7% 0.165 320.7);
Tailwind
colors: {
  custom: {
    50: '#e8acf2',
    500: '#db87ec',
    950: '#000000',
  },
}
SCSS
$custom: #db87ec;
$custom-light: #e8acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#db87ec",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 289.901,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.74674,
    "c": 0.16503,
    "h": 320.7
  },
  "luminance": 0.38444
}

Semantic roles & 50–950 ramp

primary
#DB87EC
secondary
#DDF2D9
accent
#D51132
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #DB87EC

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

Preview Lab → · Contrast checker → · Palette generator →

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