#D873FA#D873FA

#D873FA is a light, highly saturated purple. Relative luminance 0.338; OKLCH L 72.2% C 0.209 H 316.9°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#D873FA
RGBrgb(216, 115, 250)
HSLhsl(285, 93%, 72%)
HSVhsv(285, 54%, 98%)
CMYKcmyk(13.6%, 54%, 0%, 2%)
CIE-LABlab(64.78, 59.99, -51.32)
CIE-LCHlch(64.78, 78.94, 319.45°)
OKLaboklab(72.16% 0.153 -0.143)
OKLCHoklch(72.16% 0.209 316.9)
XYZxyz(51.7024, 33.7643, 94.2176)
Luminance0.3376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D873FA #95FA73
analogous
#9573FA #D873FA #FA73D9
triadic
#D873FA #FAD873 #73FAD8
tetradic
#D873FA #FA9573 #95FA73 #73D9FA
square
#D873FA #FA9573 #95FA73 #73D9FA
split-complementary
#D873FA #D9FA73 #73FA95
monochromatic
#B108EA #C838F8 #D873FA #E8AEFC #F7E1FE

Accessibility & contrast

On white

2.71
#D873FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#D873FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D873FA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D873FA#FFFFFF#000000##000000
##D873FA1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5497FE
Deuteranopia (green-blind)
#76A0F6
Tritanopia (blue-blind)
#D788AC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d873fa;
/* rgb */ color: rgb(216, 115, 250);
/* oklch */ color: oklch(72.2% 0.209 316.9);
Tailwind
colors: {
  custom: {
    50: '#e79ffc',
    500: '#d873fa',
    950: '#000000',
  },
}
SCSS
$custom: #d873fa;
$custom-light: #e79ffc;
$custom-dark: #000000;
JSON
{
  "hex": "#d873fa",
  "rgb": {
    "r": 216,
    "g": 115,
    "b": 250
  },
  "hsl": {
    "h": 284.889,
    "s": 93.103,
    "l": 71.569
  },
  "oklch": {
    "l": 0.7216,
    "c": 0.20943,
    "h": 316.9
  },
  "luminance": 0.33763
}

Semantic roles & 50–950 ramp

primary
#D873FA
secondary
#DCF6D3
accent
#E6003A
background
#FEFAFF
surface
#FDF3FF
border
#D5CDD7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D873FA

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

Preview Lab → · Contrast checker → · Palette generator →

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