#D978EF#D978EF

#D978EF is a light, vivid purple. Relative luminance 0.344; OKLCH L 72.4% C 0.191 H 320.0°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#D978EF
RGBrgb(217, 120, 239)
HSLhsl(289, 79%, 70%)
HSVhsv(289, 50%, 94%)
CMYKcmyk(9.2%, 49.8%, 0%, 6.3%)
CIE-LABlab(65.29, 55.66, -44.43)
CIE-LCHlch(65.29, 71.22, 321.40°)
OKLaboklab(72.4% 0.1465 -0.123)
OKLCHoklch(72.4% 0.191 320)
XYZxyz(50.9098, 34.4187, 85.6064)
Luminance0.3442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978EF #8EEF78
analogous
#9E78EF #D978EF #EF78C9
triadic
#D978EF #EFD978 #78EFD9
tetradic
#D978EF #EF9E78 #8EEF78 #78C9EF
square
#D978EF #EF9E78 #8EEF78 #78C9EF
split-complementary
#D978EF #C9EF78 #78EF9E
monochromatic
#B119D4 #CA41E9 #D978EF #E8AFF5 #F7E4FC

Accessibility & contrast

On white

2.66
#D978EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#D978EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978EF
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978EF#FFFFFF#000000##000000
##D978EF1.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6498F3
Deuteranopia (green-blind)
#81A2EC
Tritanopia (blue-blind)
#DA88A9
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d978ef;
/* rgb */ color: rgb(217, 120, 239);
/* oklch */ color: oklch(72.4% 0.191 320.0);
Tailwind
colors: {
  custom: {
    50: '#e7a2f4',
    500: '#d978ef',
    950: '#000000',
  },
}
SCSS
$custom: #d978ef;
$custom-light: #e7a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d978ef",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 288.908,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.72395,
    "c": 0.19134,
    "h": 320
  },
  "luminance": 0.34417
}

Semantic roles & 50–950 ramp

primary
#D978EF
secondary
#D7F2D1
accent
#DB0A31
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978EF

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

Preview Lab → · Contrast checker → · Palette generator →

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