#D877FC#D877FC

#D877FC is a light, highly saturated purple. Relative luminance 0.348; OKLCH L 72.8% C 0.205 H 316.1°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#D877FC
RGBrgb(216, 119, 252)
HSLhsl(284, 96%, 73%)
HSVhsv(284, 53%, 99%)
CMYKcmyk(14.3%, 52.8%, 0%, 1.2%)
CIE-LABlab(65.61, 58.43, -51.09)
CIE-LCHlch(65.61, 77.62, 318.83°)
OKLaboklab(72.81% 0.148 -0.1424)
OKLCHoklch(72.81% 0.205 316.1)
XYZxyz(52.4838, 34.8225, 96.0333)
Luminance0.3482 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D877FC #9BFC77
analogous
#9577FC #D877FC #FC77DE
triadic
#D877FC #FCD877 #77FCD8
tetradic
#D877FC #FC9577 #9BFC77 #77DEFC
square
#D877FC #FC9577 #9BFC77 #77DEFC
split-complementary
#D877FC #DEFC77 #77FC95
monochromatic
#B305F3 #C73BFB #D877FC #E9B3FD #F6E1FE

Accessibility & contrast

On white

2.64
#D877FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#D877FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D877FC
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D877FC#FFFFFF#000000##000000
##D877FC1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#78A2F8
Tritanopia (blue-blind)
#D68CAF
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d877fc;
/* rgb */ color: rgb(216, 119, 252);
/* oklch */ color: oklch(72.8% 0.205 316.1);
Tailwind
colors: {
  custom: {
    50: '#e7a2fe',
    500: '#d877fc',
    950: '#000000',
  },
}
SCSS
$custom: #d877fc;
$custom-light: #e7a2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d877fc",
  "rgb": {
    "r": 216,
    "g": 119,
    "b": 252
  },
  "hsl": {
    "h": 283.759,
    "s": 95.683,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72806,
    "c": 0.2054,
    "h": 316.1
  },
  "luminance": 0.34821
}

Semantic roles & 50–950 ramp

primary
#D877FC
secondary
#DEF7D4
accent
#E6003E
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D877FC

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

Preview Lab → · Contrast checker → · Palette generator →

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