#D978EA#D978EA

#D978EA is a light, vivid purple. Relative luminance 0.341; OKLCH L 72.2% C 0.186 H 321.5°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#D978EA
RGBrgb(217, 120, 234)
HSLhsl(291, 73%, 69%)
HSVhsv(291, 49%, 92%)
CMYKcmyk(7.3%, 48.7%, 0%, 8.2%)
CIE-LABlab(65.06, 54.70, -42.03)
CIE-LCHlch(65.06, 68.98, 322.47°)
OKLaboklab(72.15% 0.1459 -0.1161)
OKLCHoklch(72.15% 0.186 321.5)
XYZxyz(50.1813, 34.1273, 81.7699)
Luminance0.3412 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978EA #89EA78
analogous
#A078EA #D978EA #EA78C2
triadic
#D978EA #EAD978 #78EAD9
tetradic
#D978EA #EAA078 #89EA78 #78C2EA
square
#D978EA #EAA078 #89EA78 #78C2EA
split-complementary
#D978EA #C2EA78 #78EAA0
monochromatic
#AF1FC8 #CA43E2 #D978EA #E8ADF2 #F7E2FA

Accessibility & contrast

On white

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

On black

7.82
#D978EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978EA
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978EA#FFFFFF#000000##000000
##D978EA1.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6797EE
Deuteranopia (green-blind)
#84A2E7
Tritanopia (blue-blind)
#DB87A6
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d978ea;
/* rgb */ color: rgb(217, 120, 234);
/* oklch */ color: oklch(72.2% 0.186 321.5);
Tailwind
colors: {
  custom: {
    50: '#e7a2f1',
    500: '#d978ea',
    950: '#000000',
  },
}
SCSS
$custom: #d978ea;
$custom-light: #e7a2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d978ea",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 291.053,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.7215,
    "c": 0.18645,
    "h": 321.5
  },
  "luminance": 0.34125
}

Semantic roles & 50–950 ramp

primary
#D978EA
secondary
#D3EFCE
accent
#D5102E
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978EA

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

Preview Lab → · Contrast checker → · Palette generator →

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