#D878EE#D878EE

#D878EE is a light, vivid purple. Relative luminance 0.342; OKLCH L 72.2% C 0.190 H 319.9°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#D878EE
RGBrgb(216, 120, 238)
HSLhsl(289, 78%, 70%)
HSVhsv(289, 50%, 93%)
CMYKcmyk(9.2%, 49.6%, 0%, 6.7%)
CIE-LABlab(65.13, 55.19, -44.15)
CIE-LCHlch(65.13, 70.68, 321.34°)
OKLaboklab(72.23% 0.1453 -0.1223)
OKLCHoklch(72.23% 0.19 319.9)
XYZxyz(50.4661, 34.2069, 84.8166)
Luminance0.3421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D878EE #8EEE78
analogous
#9D78EE #D878EE #EE78C9
triadic
#D878EE #EED878 #78EED8
tetradic
#D878EE #EE9D78 #8EEE78 #78C9EE
square
#D878EE #EE9D78 #8EEE78 #78C9EE
split-complementary
#D878EE #C9EE78 #78EE9D
monochromatic
#AF1AD1 #C842E7 #D878EE #E8AEF5 #F7E4FC

Accessibility & contrast

On white

2.68
#D878EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#D878EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D878EE
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D878EE#FFFFFF#000000##000000
##D878EE1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6497F2
Deuteranopia (green-blind)
#81A2EB
Tritanopia (blue-blind)
#D988A8
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d878ee;
/* rgb */ color: rgb(216, 120, 238);
/* oklch */ color: oklch(72.2% 0.190 319.9);
Tailwind
colors: {
  custom: {
    50: '#e6a2f4',
    500: '#d878ee',
    950: '#000000',
  },
}
SCSS
$custom: #d878ee;
$custom-light: #e6a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d878ee",
  "rgb": {
    "r": 216,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 288.814,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.7223,
    "c": 0.18986,
    "h": 319.9
  },
  "luminance": 0.34205
}

Semantic roles & 50–950 ramp

primary
#D878EE
secondary
#D7F1D1
accent
#DA0C32
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D878EE

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

Preview Lab → · Contrast checker → · Palette generator →

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