#DB87F1#DB87F1

#DB87F1 is a light, vivid purple. Relative luminance 0.387; OKLCH L 74.9% C 0.170 H 319.1°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#DB87F1
RGBrgb(219, 135, 241)
HSLhsl(288, 79%, 74%)
HSVhsv(288, 44%, 95%)
CMYKcmyk(9.1%, 44%, 0%, 5.5%)
CIE-LABlab(68.56, 48.99, -40.39)
CIE-LCHlch(68.56, 63.49, 320.49°)
OKLaboklab(74.91% 0.1286 -0.1115)
OKLCHoklch(74.91% 0.17 319.1)
XYZxyz(53.7525, 38.7407, 87.8482)
Luminance0.3874 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87F1 #9DF187
analogous
#A687F1 #DB87F1 #F187D2
triadic
#DB87F1 #F1DB87 #87F1DB
tetradic
#DB87F1 #F1A687 #9DF187 #87D2F1
square
#DB87F1 #F1A687 #9DF187 #87D2F1
split-complementary
#DB87F1 #D2F187 #87F1A6
monochromatic
#B91AE3 #CB50EB #DB87F1 #EBBEF7 #F7E4FC

Accessibility & contrast

On white

2.40
#DB87F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#DB87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87F1
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87F1#FFFFFF#000000##000000
##DB87F11.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A2F5
Deuteranopia (green-blind)
#8DAAEE
Tritanopia (blue-blind)
#DC95B1
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #db87f1;
/* rgb */ color: rgb(219, 135, 241);
/* oklch */ color: oklch(74.9% 0.170 319.1);
Tailwind
colors: {
  custom: {
    50: '#e8acf6',
    500: '#db87f1',
    950: '#000000',
  },
}
SCSS
$custom: #db87f1;
$custom-light: #e8acf6;
$custom-dark: #000000;
JSON
{
  "hex": "#db87f1",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 287.547,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.74905,
    "c": 0.17017,
    "h": 319.1
  },
  "luminance": 0.38739
}

Semantic roles & 50–950 ramp

primary
#DB87F1
secondary
#DDF4D7
accent
#DB0A36
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #DB87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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