#D978ED#D978ED

#D978ED is a light, vivid purple. Relative luminance 0.343; OKLCH L 72.3% C 0.189 H 320.6°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#D978ED
RGBrgb(217, 120, 237)
HSLhsl(290, 76%, 70%)
HSVhsv(290, 49%, 93%)
CMYKcmyk(8.4%, 49.4%, 0%, 7.1%)
CIE-LABlab(65.20, 55.27, -43.47)
CIE-LCHlch(65.20, 70.32, 321.82°)
OKLaboklab(72.3% 0.1463 -0.1203)
OKLCHoklch(72.3% 0.189 320.6)
XYZxyz(50.6160, 34.3011, 84.0589)
Luminance0.3430 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978ED #8CED78
analogous
#9F78ED #D978ED #ED78C6
triadic
#D978ED #EDD978 #78EDD9
tetradic
#D978ED #ED9F78 #8CED78 #78C6ED
square
#D978ED #ED9F78 #8CED78 #78C6ED
split-complementary
#D978ED #C6ED78 #78ED9F
monochromatic
#B01CCF #CA42E6 #D978ED #E8AEF4 #F7E4FB

Accessibility & contrast

On white

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

On black

7.86
#D978ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978ED
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978ED#FFFFFF#000000##000000
##D978ED1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6597F1
Deuteranopia (green-blind)
#82A2EA
Tritanopia (blue-blind)
#DB88A8
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d978ed;
/* rgb */ color: rgb(217, 120, 237);
/* oklch */ color: oklch(72.3% 0.189 320.6);
Tailwind
colors: {
  custom: {
    50: '#e7a2f3',
    500: '#d978ed',
    950: '#000000',
  },
}
SCSS
$custom: #d978ed;
$custom-light: #e7a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#d978ed",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 237
  },
  "hsl": {
    "h": 289.744,
    "s": 76.471,
    "l": 70
  },
  "oklch": {
    "l": 0.72296,
    "c": 0.18937,
    "h": 320.6
  },
  "luminance": 0.34299
}

Semantic roles & 50–950 ramp

primary
#D978ED
secondary
#D6F1D0
accent
#D90D30
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978ED

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

Preview Lab → · Contrast checker → · Palette generator →

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