#DB87F5#DB87F5

#DB87F5 is a light, vivid purple. Relative luminance 0.390; OKLCH L 75.1% C 0.174 H 317.8°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#DB87F5
RGBrgb(219, 135, 245)
HSLhsl(286, 85%, 75%)
HSVhsv(286, 45%, 96%)
CMYKcmyk(10.6%, 44.9%, 0%, 3.9%)
CIE-LABlab(68.74, 49.77, -42.31)
CIE-LCHlch(68.74, 65.33, 319.63°)
OKLaboklab(75.09% 0.1292 -0.117)
OKLCHoklch(75.09% 0.174 317.8)
XYZxyz(54.3565, 38.9823, 91.0295)
Luminance0.3898 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87F5 #A1F587
analogous
#A487F5 #DB87F5 #F587D8
triadic
#DB87F5 #F5DB87 #87F5DB
tetradic
#DB87F5 #F5A487 #A1F587 #87D8F5
square
#DB87F5 #F5A487 #A1F587 #87D8F5
split-complementary
#DB87F5 #D8F587 #87F5A4
monochromatic
#B916EC #CA4FF0 #DB87F5 #ECBFFA #F7E3FD

Accessibility & contrast

On white

2.39
#DB87F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#DB87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87F5
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87F5#FFFFFF#000000##000000
##DB87F51.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A2F9
Deuteranopia (green-blind)
#8CABF2
Tritanopia (blue-blind)
#DB96B3
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #db87f5;
/* rgb */ color: rgb(219, 135, 245);
/* oklch */ color: oklch(75.1% 0.174 317.8);
Tailwind
colors: {
  custom: {
    50: '#e8acf9',
    500: '#db87f5',
    950: '#000000',
  },
}
SCSS
$custom: #db87f5;
$custom-light: #e8acf9;
$custom-dark: #000000;
JSON
{
  "hex": "#db87f5",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 285.818,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.75093,
    "c": 0.17431,
    "h": 317.8
  },
  "luminance": 0.38981
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DB87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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