#D873FB#D873FB

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

Color values

HEX#D873FB
RGBrgb(216, 115, 251)
HSLhsl(285, 94%, 72%)
HSVhsv(285, 54%, 98%)
CMYKcmyk(13.9%, 54.2%, 0%, 1.6%)
CIE-LABlab(64.83, 60.19, -51.79)
CIE-LCHlch(64.83, 79.40, 319.29°)
OKLaboklab(72.21% 0.1531 -0.1444)
OKLCHoklch(72.21% 0.21 316.7)
XYZxyz(51.8597, 33.8272, 95.0456)
Luminance0.3382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D873FB #96FB73
analogous
#9473FB #D873FB #FB73DA
triadic
#D873FB #FBD873 #73FBD8
tetradic
#D873FB #FB9473 #96FB73 #73DAFB
square
#D873FB #FB9473 #96FB73 #73DAFB
split-complementary
#D873FB #DAFB73 #73FB94
monochromatic
#B207ED #C738F9 #D873FB #E9AFFD #F7E1FE

Accessibility & contrast

On white

2.70
#D873FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#D873FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D873FB
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D873FB#FFFFFF#000000##000000
##D873FB1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5397FF
Deuteranopia (green-blind)
#76A0F7
Tritanopia (blue-blind)
#D788AC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d873fb;
/* rgb */ color: rgb(216, 115, 251);
/* oklch */ color: oklch(72.2% 0.210 316.7);
Tailwind
colors: {
  custom: {
    50: '#e79ffd',
    500: '#d873fb',
    950: '#000000',
  },
}
SCSS
$custom: #d873fb;
$custom-light: #e79ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#d873fb",
  "rgb": {
    "r": 216,
    "g": 115,
    "b": 251
  },
  "hsl": {
    "h": 284.559,
    "s": 94.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.72213,
    "c": 0.21042,
    "h": 316.7
  },
  "luminance": 0.33825
}

Semantic roles & 50–950 ramp

primary
#D873FB
secondary
#DDF6D4
accent
#E6003B
background
#FEFAFF
surface
#FDF3FF
border
#D5CDD7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D873FB

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

Preview Lab → · Contrast checker → · Palette generator →

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