#DB87F6#DB87F6

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

Color values

HEX#DB87F6
RGBrgb(219, 135, 246)
HSLhsl(285, 86%, 75%)
HSVhsv(285, 45%, 96%)
CMYKcmyk(11%, 45.1%, 0%, 3.5%)
CIE-LABlab(68.78, 49.97, -42.79)
CIE-LCHlch(68.78, 65.79, 319.43°)
OKLaboklab(75.14% 0.1294 -0.1184)
OKLCHoklch(75.14% 0.175 317.5)
XYZxyz(54.5096, 39.0435, 91.8357)
Luminance0.3904 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB87F6 #A2F687
analogous
#A387F6 #DB87F6 #F687DA
triadic
#DB87F6 #F6DB87 #87F6DB
tetradic
#DB87F6 #F6A387 #A2F687 #87DAF6
square
#DB87F6 #F6A387 #A2F687 #87DAF6
split-complementary
#DB87F6 #DAF687 #87F6A3
monochromatic
#B915ED #CA4EF2 #DB87F6 #ECC0FA #F6E3FD

Accessibility & contrast

On white

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

On black

8.81
#DB87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB87F6
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB87F6#FFFFFF#000000##000000
##DB87F61.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #db87f6;
/* rgb */ color: rgb(219, 135, 246);
/* oklch */ color: oklch(75.1% 0.175 317.5);
Tailwind
colors: {
  custom: {
    50: '#e8acf9',
    500: '#db87f6',
    950: '#000000',
  },
}
SCSS
$custom: #db87f6;
$custom-light: #e8acf9;
$custom-dark: #000000;
JSON
{
  "hex": "#db87f6",
  "rgb": {
    "r": 219,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 285.405,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.75141,
    "c": 0.17536,
    "h": 317.5
  },
  "luminance": 0.39042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DB87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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