#D978EE#D978EE

#D978EE is a light, vivid purple. Relative luminance 0.344; OKLCH L 72.3% C 0.190 H 320.3°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#D978EE
RGBrgb(217, 120, 238)
HSLhsl(289, 78%, 70%)
HSVhsv(289, 50%, 93%)
CMYKcmyk(8.8%, 49.6%, 0%, 6.7%)
CIE-LABlab(65.25, 55.47, -43.95)
CIE-LCHlch(65.25, 70.77, 321.61°)
OKLaboklab(72.35% 0.1464 -0.1217)
OKLCHoklch(72.35% 0.19 320.3)
XYZxyz(50.7625, 34.3597, 84.8305)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978EE #8DEE78
analogous
#9E78EE #D978EE #EE78C8
triadic
#D978EE #EED978 #78EED9
tetradic
#D978EE #EE9E78 #8DEE78 #78C8EE
square
#D978EE #EE9E78 #8DEE78 #78C8EE
split-complementary
#D978EE #C8EE78 #78EE9E
monochromatic
#B11AD1 #CA42E7 #D978EE #E8AEF5 #F7E4FC

Accessibility & contrast

On white

2.67
#D978EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#D978EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978EE
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978EE#FFFFFF#000000##000000
##D978EE1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6498F2
Deuteranopia (green-blind)
#82A2EB
Tritanopia (blue-blind)
#DA88A8
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d978ee;
/* rgb */ color: rgb(217, 120, 238);
/* oklch */ color: oklch(72.3% 0.190 320.3);
Tailwind
colors: {
  custom: {
    50: '#e7a2f4',
    500: '#d978ee',
    950: '#000000',
  },
}
SCSS
$custom: #d978ee;
$custom-light: #e7a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d978ee",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 289.322,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72345,
    "c": 0.19036,
    "h": 320.3
  },
  "luminance": 0.34358
}

Semantic roles & 50–950 ramp

primary
#D978EE
secondary
#D6F1D1
accent
#DA0C30
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978EE

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

Preview Lab → · Contrast checker → · Palette generator →

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