#D87DF2#D87DF2

#D87DF2 is a light, vivid purple. Relative luminance 0.357; OKLCH L 73.1% C 0.186 H 318.4°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#D87DF2
RGBrgb(216, 125, 242)
HSLhsl(287, 82%, 72%)
HSVhsv(287, 48%, 95%)
CMYKcmyk(10.7%, 48.3%, 0%, 5.1%)
CIE-LABlab(66.27, 53.46, -44.55)
CIE-LCHlch(66.27, 69.59, 320.19°)
OKLaboklab(73.14% 0.139 -0.1235)
OKLCHoklch(73.14% 0.186 318.4)
XYZxyz(51.6774, 35.6788, 88.1517)
Luminance0.3568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87DF2 #97F27D
analogous
#9E7DF2 #D87DF2 #F27DD1
triadic
#D87DF2 #F2D87D #7DF2D8
tetradic
#D87DF2 #F29E7D #97F27D #7DD1F2
square
#D87DF2 #F29E7D #97F27D #7DD1F2
split-complementary
#D87DF2 #D1F27D #7DF29E
monochromatic
#B216DE #C745EC #D87DF2 #E9B5F8 #F7E3FC

Accessibility & contrast

On white

2.58
#D87DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#D87DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87DF2
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87DF2#FFFFFF#000000##000000
##D87DF21.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#689BF6
Deuteranopia (green-blind)
#83A4EF
Tritanopia (blue-blind)
#D88DAC
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d87df2;
/* rgb */ color: rgb(216, 125, 242);
/* oklch */ color: oklch(73.1% 0.186 318.4);
Tailwind
colors: {
  custom: {
    50: '#e6a5f7',
    500: '#d87df2',
    950: '#000000',
  },
}
SCSS
$custom: #d87df2;
$custom-light: #e6a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d87df2",
  "rgb": {
    "r": 216,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 286.667,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.73141,
    "c": 0.18593,
    "h": 318.4
  },
  "luminance": 0.35677
}

Semantic roles & 50–950 ramp

primary
#D87DF2
secondary
#DDF4D7
accent
#DE0737
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D87DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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