#DB87FC#DB87FC

#DB87FC is a light, vivid purple. Relative luminance 0.394; OKLCH L 75.4% C 0.182 H 315.8°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#DB87FC
RGBrgb(219, 135, 252)
HSLhsl(283, 95%, 76%)
HSVhsv(283, 46%, 99%)
CMYKcmyk(13.1%, 46.4%, 0%, 1.2%)
CIE-LABlab(69.05, 51.17, -45.64)
CIE-LCHlch(69.05, 68.57, 318.27°)
OKLaboklab(75.43% 0.1303 -0.1266)
OKLCHoklch(75.43% 0.182 315.8)
XYZxyz(55.4454, 39.4179, 96.7643)
Luminance0.3942 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87FC #A8FC87
analogous
#A087FC #DB87FC #FC87E2
triadic
#DB87FC #FCDB87 #87FCDB
tetradic
#DB87FC #FCA087 #A8FC87 #87E2FC
square
#DB87FC #FCA087 #A8FC87 #87E2FC
split-complementary
#DB87FC #E2FC87 #87FCA0
monochromatic
#B710F9 #C94BFB #DB87FC #EDC3FD #F6E1FE

Accessibility & contrast

On white

2.36
#DB87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#DB87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87FC
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87FC#FFFFFF#000000##000000
##DB87FC1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A3FF
Deuteranopia (green-blind)
#88ABF9
Tritanopia (blue-blind)
#D998B6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #db87fc;
/* rgb */ color: rgb(219, 135, 252);
/* oklch */ color: oklch(75.4% 0.182 315.8);
Tailwind
colors: {
  custom: {
    50: '#e8acfe',
    500: '#db87fc',
    950: '#000000',
  },
}
SCSS
$custom: #db87fc;
$custom-light: #e8acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#db87fc",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 283.077,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7543,
    "c": 0.18167,
    "h": 315.8
  },
  "luminance": 0.39416
}

Semantic roles & 50–950 ramp

primary
#DB87FC
secondary
#DEF6D5
accent
#E60041
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #DB87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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