#DB87F2#DB87F2

#DB87F2 is a light, vivid purple. Relative luminance 0.388; OKLCH L 75.0% C 0.171 H 318.8°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#DB87F2
RGBrgb(219, 135, 242)
HSLhsl(287, 80%, 74%)
HSVhsv(287, 44%, 95%)
CMYKcmyk(9.5%, 44.2%, 0%, 5.1%)
CIE-LABlab(68.61, 49.18, -40.87)
CIE-LCHlch(68.61, 63.95, 320.27°)
OKLaboklab(74.95% 0.1288 -0.1128)
OKLCHoklch(74.95% 0.171 318.8)
XYZxyz(53.9023, 38.8006, 88.6371)
Luminance0.3880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87F2 #9EF287
analogous
#A687F2 #DB87F2 #F287D4
triadic
#DB87F2 #F2DB87 #87F2DB
tetradic
#DB87F2 #F2A687 #9EF287 #87D4F2
square
#DB87F2 #F2A687 #9EF287 #87D4F2
split-complementary
#DB87F2 #D4F287 #87F2A6
monochromatic
#BA19E6 #CA50EC #DB87F2 #ECBEF8 #F7E3FC

Accessibility & contrast

On white

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

On black

8.76
#DB87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87F2
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87F2#FFFFFF#000000##000000
##DB87F21.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #db87f2;
/* rgb */ color: rgb(219, 135, 242);
/* oklch */ color: oklch(75.0% 0.171 318.8);
Tailwind
colors: {
  custom: {
    50: '#e8acf6',
    500: '#db87f2',
    950: '#000000',
  },
}
SCSS
$custom: #db87f2;
$custom-light: #e8acf6;
$custom-dark: #000000;
JSON
{
  "hex": "#db87f2",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 287.103,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.74952,
    "c": 0.1712,
    "h": 318.8
  },
  "luminance": 0.38799
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DB87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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