#D978E4#D978E4

#D978E4 is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.9% C 0.181 H 323.4°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#D978E4
RGBrgb(217, 120, 228)
HSLhsl(294, 67%, 68%)
HSVhsv(294, 47%, 89%)
CMYKcmyk(4.8%, 47.4%, 0%, 10.6%)
CIE-LABlab(64.79, 53.58, -39.12)
CIE-LCHlch(64.79, 66.34, 323.86°)
OKLaboklab(71.86% 0.145 -0.1077)
OKLCHoklch(71.86% 0.181 323.4)
XYZxyz(49.3339, 33.7883, 77.3069)
Luminance0.3379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978E4 #83E478
analogous
#A378E4 #D978E4 #E478B9
triadic
#D978E4 #E4D978 #78E4D9
tetradic
#D978E4 #E4A378 #83E478 #78B9E4
square
#D978E4 #E4A378 #83E478 #78B9E4
split-complementary
#D978E4 #B9E478 #78E4A3
monochromatic
#AD26BC #CB45DA #D978E4 #E7ABEE #F6DEF8

Accessibility & contrast

On white

2.71
#D978E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#D978E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978E4
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978E4#FFFFFF#000000##000000
##D978E41.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A96E8
Deuteranopia (green-blind)
#86A1E1
Tritanopia (blue-blind)
#DC85A4
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d978e4;
/* rgb */ color: rgb(217, 120, 228);
/* oklch */ color: oklch(71.9% 0.181 323.4);
Tailwind
colors: {
  custom: {
    50: '#e7a2ed',
    500: '#d978e4',
    950: '#000000',
  },
}
SCSS
$custom: #d978e4;
$custom-light: #e7a2ed;
$custom-dark: #000000;
JSON
{
  "hex": "#d978e4",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 228
  },
  "hsl": {
    "h": 293.889,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.71862,
    "c": 0.18065,
    "h": 323.4
  },
  "luminance": 0.33786
}

Semantic roles & 50–950 ramp

primary
#D978E4
secondary
#CFECCC
accent
#CF172A
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F16
muted
#847F84

Preview Lab

Preview with #D978E4

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

Preview Lab → · Contrast checker → · Palette generator →

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