#D873F0#D873F0

#D873F0 is a light, vivid purple. Relative luminance 0.332; OKLCH L 71.6% C 0.200 H 319.6°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#D873F0
RGBrgb(216, 115, 240)
HSLhsl(288, 81%, 70%)
HSVhsv(288, 52%, 94%)
CMYKcmyk(10%, 52.1%, 0%, 5.9%)
CIE-LABlab(64.29, 58.04, -46.58)
CIE-LCHlch(64.29, 74.42, 321.25°)
OKLaboklab(71.64% 0.1521 -0.1293)
OKLCHoklch(71.64% 0.2 319.6)
XYZxyz(50.1758, 33.1537, 86.1774)
Luminance0.3315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D873F0 #8BF073
analogous
#9A73F0 #D873F0 #F073CA
triadic
#D873F0 #F0D873 #73F0D8
tetradic
#D873F0 #F09A73 #8BF073 #73CAF0
square
#D873F0 #F09A73 #8BF073 #73CAF0
split-complementary
#D873F0 #CAF073 #73F09A
monochromatic
#AE17D2 #C93CEA #D873F0 #E7AAF6 #F7E2FC

Accessibility & contrast

On white

2.75
#D873F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#D873F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D873F0
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D873F0#FFFFFF#000000##000000
##D873F01.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C95F4
Deuteranopia (green-blind)
#7C9FED
Tritanopia (blue-blind)
#D985A7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d873f0;
/* rgb */ color: rgb(216, 115, 240);
/* oklch */ color: oklch(71.6% 0.200 319.6);
Tailwind
colors: {
  custom: {
    50: '#e69ff5',
    500: '#d873f0',
    950: '#000000',
  },
}
SCSS
$custom: #d873f0;
$custom-light: #e69ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#d873f0",
  "rgb": {
    "r": 216,
    "g": 115,
    "b": 240
  },
  "hsl": {
    "h": 288.48,
    "s": 80.645,
    "l": 69.608
  },
  "oklch": {
    "l": 0.7164,
    "c": 0.19961,
    "h": 319.6
  },
  "luminance": 0.33152
}

Semantic roles & 50–950 ramp

primary
#D873F0
secondary
#D4F1CE
accent
#DD0931
background
#FEFAFF
surface
#FDF3FE
border
#D5CDD6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D873F0

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

Preview Lab → · Contrast checker → · Palette generator →

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