#D873F2#D873F2

#D873F2 is a light, highly saturated purple. Relative luminance 0.333; OKLCH L 71.7% C 0.202 H 319.1°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#D873F2
RGBrgb(216, 115, 242)
HSLhsl(288, 83%, 70%)
HSVhsv(288, 52%, 95%)
CMYKcmyk(10.7%, 52.5%, 0%, 5.1%)
CIE-LABlab(64.38, 58.43, -47.53)
CIE-LCHlch(64.38, 75.32, 320.87°)
OKLaboklab(71.74% 0.1523 -0.132)
OKLCHoklch(71.74% 0.202 319.1)
XYZxyz(50.4746, 33.2732, 87.7508)
Luminance0.3327 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D873F2 #8DF273
analogous
#9973F2 #D873F2 #F273CC
triadic
#D873F2 #F2D873 #73F2D8
tetradic
#D873F2 #F29973 #8DF273 #73CCF2
square
#D873F2 #F29973 #8DF273 #73CCF2
split-complementary
#D873F2 #CCF273 #73F299
monochromatic
#AF14D7 #C83BED #D873F2 #E8ABF7 #F7E3FC

Accessibility & contrast

On white

2.74
#D873F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#D873F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D873F2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D873F2#FFFFFF#000000##000000
##D873F21.002.747.657.65
#FFFFFF2.741.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A95F6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#D886A8
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d873f2;
/* rgb */ color: rgb(216, 115, 242);
/* oklch */ color: oklch(71.7% 0.202 319.1);
Tailwind
colors: {
  custom: {
    50: '#e69ff7',
    500: '#d873f2',
    950: '#000000',
  },
}
SCSS
$custom: #d873f2;
$custom-light: #e69ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#d873f2",
  "rgb": {
    "r": 216,
    "g": 115,
    "b": 242
  },
  "hsl": {
    "h": 287.717,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.71742,
    "c": 0.20156,
    "h": 319.1
  },
  "luminance": 0.33271
}

Semantic roles & 50–950 ramp

primary
#D873F2
secondary
#D6F2CF
accent
#DF0633
background
#FEFAFF
surface
#FDF3FF
border
#D5CDD7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D873F2

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

Preview Lab → · Contrast checker → · Palette generator →

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