#DB87F3#DB87F3

#DB87F3 is a light, vivid purple. Relative luminance 0.389; OKLCH L 75.0% C 0.172 H 318.5°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#DB87F3
RGBrgb(219, 135, 243)
HSLhsl(287, 82%, 74%)
HSVhsv(287, 44%, 95%)
CMYKcmyk(9.9%, 44.4%, 0%, 4.7%)
CIE-LABlab(68.65, 49.38, -41.35)
CIE-LCHlch(68.65, 64.41, 320.06°)
OKLaboklab(75% 0.1289 -0.1142)
OKLCHoklch(75% 0.172 318.5)
XYZxyz(54.0529, 38.8608, 89.4302)
Luminance0.3886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87F3 #9FF387
analogous
#A587F3 #DB87F3 #F387D5
triadic
#DB87F3 #F3DB87 #87F3DB
tetradic
#DB87F3 #F3A587 #9FF387 #87D5F3
square
#DB87F3 #F3A587 #9FF387 #87D5F3
split-complementary
#DB87F3 #D5F387 #87F3A5
monochromatic
#BA18E8 #CA4FED #DB87F3 #ECBFF9 #F7E3FC

Accessibility & contrast

On white

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

On black

8.77
#DB87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87F3
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87F3#FFFFFF#000000##000000
##DB87F31.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A2F7
Deuteranopia (green-blind)
#8DAAF0
Tritanopia (blue-blind)
#DB95B2
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #db87f3;
/* rgb */ color: rgb(219, 135, 243);
/* oklch */ color: oklch(75.0% 0.172 318.5);
Tailwind
colors: {
  custom: {
    50: '#e8acf7',
    500: '#db87f3',
    950: '#000000',
  },
}
SCSS
$custom: #db87f3;
$custom-light: #e8acf7;
$custom-dark: #000000;
JSON
{
  "hex": "#db87f3",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 286.667,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.74999,
    "c": 0.17224,
    "h": 318.5
  },
  "luminance": 0.38859
}

Semantic roles & 50–950 ramp

primary
#DB87F3
secondary
#DDF4D7
accent
#DE0737
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #DB87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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