#D877EC#D877EC

#D877EC is a light, vivid purple. Relative luminance 0.338; OKLCH L 72.0% C 0.189 H 320.6°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#D877EC
RGBrgb(216, 119, 236)
HSLhsl(290, 75%, 70%)
HSVhsv(290, 50%, 93%)
CMYKcmyk(8.5%, 49.6%, 0%, 7.5%)
CIE-LABlab(64.84, 55.31, -43.49)
CIE-LCHlch(64.84, 70.36, 321.82°)
OKLaboklab(71.99% 0.1463 -0.1203)
OKLCHoklch(71.99% 0.189 320.6)
XYZxyz(50.0542, 33.8507, 83.2378)
Luminance0.3385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D877EC #8BEC77
analogous
#9E77EC #D877EC #EC77C5
triadic
#D877EC #ECD877 #77ECD8
tetradic
#D877EC #EC9E77 #8BEC77 #77C5EC
square
#D877EC #EC9E77 #8BEC77 #77C5EC
split-complementary
#D877EC #C5EC77 #77EC9E
monochromatic
#AE1DCC #C941E4 #D877EC #E7ADF4 #F7E2FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D877EC#FFFFFF#000000##000000
##D877EC1.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)
#6496F0
Deuteranopia (green-blind)
#81A1E9
Tritanopia (blue-blind)
#DA87A7
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d877ec;
/* rgb */ color: rgb(216, 119, 236);
/* oklch */ color: oklch(72.0% 0.189 320.6);
Tailwind
colors: {
  custom: {
    50: '#e6a1f2',
    500: '#d877ec',
    950: '#000000',
  },
}
SCSS
$custom: #d877ec;
$custom-light: #e6a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d877ec",
  "rgb": {
    "r": 216,
    "g": 119,
    "b": 236
  },
  "hsl": {
    "h": 289.744,
    "s": 75.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71991,
    "c": 0.18947,
    "h": 320.6
  },
  "luminance": 0.33849
}

Semantic roles & 50–950 ramp

primary
#D877EC
secondary
#D4F0CF
accent
#D80E30
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D877EC

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

Preview Lab → · Contrast checker → · Palette generator →

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