#D873F9#D873F9

#D873F9 is a light, highly saturated purple. Relative luminance 0.337; OKLCH L 72.1% C 0.208 H 317.2°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#D873F9
RGBrgb(216, 115, 249)
HSLhsl(285, 92%, 71%)
HSVhsv(285, 54%, 98%)
CMYKcmyk(13.3%, 53.8%, 0%, 2.4%)
CIE-LABlab(64.73, 59.79, -50.85)
CIE-LCHlch(64.73, 78.49, 319.62°)
OKLaboklab(72.11% 0.1529 -0.1416)
OKLCHoklch(72.11% 0.208 317.2)
XYZxyz(51.5461, 33.7018, 93.3940)
Luminance0.3370 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D873F9 #94F973
analogous
#9573F9 #D873F9 #F973D7
triadic
#D873F9 #F9D873 #73F9D8
tetradic
#D873F9 #F99573 #94F973 #73D7F9
square
#D873F9 #F99573 #94F973 #73D7F9
split-complementary
#D873F9 #D7F973 #73F995
monochromatic
#B10AE8 #C838F6 #D873F9 #E8AEFC #F7E2FE

Accessibility & contrast

On white

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

On black

7.74
#D873F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D873F9
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D873F9#FFFFFF#000000##000000
##D873F91.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5597FD
Deuteranopia (green-blind)
#77A0F5
Tritanopia (blue-blind)
#D788AB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d873f9;
/* rgb */ color: rgb(216, 115, 249);
/* oklch */ color: oklch(72.1% 0.208 317.2);
Tailwind
colors: {
  custom: {
    50: '#e79ffc',
    500: '#d873f9',
    950: '#000000',
  },
}
SCSS
$custom: #d873f9;
$custom-light: #e79ffc;
$custom-dark: #000000;
JSON
{
  "hex": "#d873f9",
  "rgb": {
    "r": 216,
    "g": 115,
    "b": 249
  },
  "hsl": {
    "h": 285.224,
    "s": 91.781,
    "l": 71.373
  },
  "oklch": {
    "l": 0.72107,
    "c": 0.20844,
    "h": 317.2
  },
  "luminance": 0.337
}

Semantic roles & 50–950 ramp

primary
#D873F9
secondary
#DBF5D2
accent
#E60039
background
#FEFAFF
surface
#FDF3FF
border
#D5CDD7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D873F9

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

Preview Lab → · Contrast checker → · Palette generator →

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