#D87AF2#D87AF2

#D87AF2 is a light, vivid purple. Relative luminance 0.349; OKLCH L 72.7% C 0.191 H 318.6°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#D87AF2
RGBrgb(216, 122, 242)
HSLhsl(287, 82%, 71%)
HSVhsv(287, 50%, 95%)
CMYKcmyk(10.7%, 49.6%, 0%, 5.1%)
CIE-LABlab(65.69, 54.97, -45.46)
CIE-LCHlch(65.69, 71.34, 320.41°)
OKLaboklab(72.71% 0.1431 -0.1261)
OKLCHoklch(72.71% 0.191 318.6)
XYZxyz(51.3033, 34.9307, 88.0270)
Luminance0.3493 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87AF2 #94F27A
analogous
#9C7AF2 #D87AF2 #F27AD0
triadic
#D87AF2 #F2D87A #7AF2D8
tetradic
#D87AF2 #F29C7A #94F27A #7AD0F2
square
#D87AF2 #F29C7A #94F27A #7AD0F2
split-complementary
#D87AF2 #D0F27A #7AF29C
monochromatic
#B116DC #C842ED #D87AF2 #E8B2F7 #F7E3FC

Accessibility & contrast

On white

2.63
#D87AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#D87AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87AF2
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87AF2#FFFFFF#000000##000000
##D87AF21.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#80A3EF
Tritanopia (blue-blind)
#D88BAB
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d87af2;
/* rgb */ color: rgb(216, 122, 242);
/* oklch */ color: oklch(72.7% 0.191 318.6);
Tailwind
colors: {
  custom: {
    50: '#e6a3f7',
    500: '#d87af2',
    950: '#000000',
  },
}
SCSS
$custom: #d87af2;
$custom-light: #e6a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d87af2",
  "rgb": {
    "r": 216,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 287,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.72712,
    "c": 0.19068,
    "h": 318.6
  },
  "luminance": 0.34929
}

Semantic roles & 50–950 ramp

primary
#D87AF2
secondary
#DBF3D4
accent
#DF0736
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D87AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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