#DB87F8#DB87F8

#DB87F8 is a light, vivid purple. Relative luminance 0.392; OKLCH L 75.2% C 0.177 H 317.0°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#DB87F8
RGBrgb(219, 135, 248)
HSLhsl(285, 89%, 75%)
HSVhsv(285, 46%, 97%)
CMYKcmyk(11.7%, 45.6%, 0%, 2.7%)
CIE-LABlab(68.87, 50.37, -43.74)
CIE-LCHlch(68.87, 66.71, 319.03°)
OKLaboklab(75.24% 0.1297 -0.1211)
OKLCHoklch(75.24% 0.177 317)
XYZxyz(54.8182, 39.1670, 93.4611)
Luminance0.3916 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87F8 #A4F887
analogous
#A387F8 #DB87F8 #F887DC
triadic
#DB87F8 #F8DB87 #87F8DB
tetradic
#DB87F8 #F8A387 #A4F887 #87DCF8
square
#DB87F8 #F8A387 #A4F887 #87DCF8
split-complementary
#DB87F8 #DCF887 #87F8A3
monochromatic
#B813F1 #CA4DF5 #DB87F8 #ECC1FB #F6E2FD

Accessibility & contrast

On white

2.38
#DB87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#DB87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87F8
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87F8#FFFFFF#000000##000000
##DB87F81.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A3FC
Deuteranopia (green-blind)
#8AABF5
Tritanopia (blue-blind)
#DA97B4
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #db87f8;
/* rgb */ color: rgb(219, 135, 248);
/* oklch */ color: oklch(75.2% 0.177 317.0);
Tailwind
colors: {
  custom: {
    50: '#e8acfb',
    500: '#db87f8',
    950: '#000000',
  },
}
SCSS
$custom: #db87f8;
$custom-light: #e8acfb;
$custom-dark: #000000;
JSON
{
  "hex": "#db87f8",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 284.602,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.75236,
    "c": 0.17745,
    "h": 317
  },
  "luminance": 0.39165
}

Semantic roles & 50–950 ramp

primary
#DB87F8
secondary
#DEF5D6
accent
#E6003B
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #DB87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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