#D87FF2#D87FF2

#D87FF2 is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.4% C 0.183 H 318.2°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#D87FF2
RGBrgb(216, 127, 242)
HSLhsl(286, 82%, 72%)
HSVhsv(286, 48%, 95%)
CMYKcmyk(10.7%, 47.5%, 0%, 5.1%)
CIE-LABlab(66.67, 52.45, -43.94)
CIE-LCHlch(66.67, 68.42, 320.05°)
OKLaboklab(73.43% 0.1363 -0.1217)
OKLCHoklch(73.43% 0.183 318.2)
XYZxyz(51.9331, 36.1903, 88.2369)
Luminance0.3619 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87FF2 #99F27F
analogous
#9F7FF2 #D87FF2 #F27FD2
triadic
#D87FF2 #F2D87F #7FF2D8
tetradic
#D87FF2 #F29F7F #99F27F #7FD2F2
square
#D87FF2 #F29F7F #99F27F #7FD2F2
split-complementary
#D87FF2 #D2F27F #7FF29F
monochromatic
#B217E0 #C747EC #D87FF2 #E9B7F8 #F7E3FC

Accessibility & contrast

On white

2.55
#D87FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#D87FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87FF2
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87FF2#FFFFFF#000000##000000
##D87FF21.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9CF6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#D88FAD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d87ff2;
/* rgb */ color: rgb(216, 127, 242);
/* oklch */ color: oklch(73.4% 0.183 318.2);
Tailwind
colors: {
  custom: {
    50: '#e6a7f7',
    500: '#d87ff2',
    950: '#000000',
  },
}
SCSS
$custom: #d87ff2;
$custom-light: #e6a7f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d87ff2",
  "rgb": {
    "r": 216,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 286.435,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73431,
    "c": 0.18273,
    "h": 318.2
  },
  "luminance": 0.36188
}

Semantic roles & 50–950 ramp

primary
#D87FF2
secondary
#DEF4D7
accent
#DE0838
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D87FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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