#D978E9#D978E9

#D978E9 is a light, vivid purple. Relative luminance 0.341; OKLCH L 72.1% C 0.185 H 321.8°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#D978E9
RGBrgb(217, 120, 233)
HSLhsl(292, 72%, 69%)
HSVhsv(292, 48%, 91%)
CMYKcmyk(6.9%, 48.5%, 0%, 8.6%)
CIE-LABlab(65.02, 54.51, -41.54)
CIE-LCHlch(65.02, 68.54, 322.69°)
OKLaboklab(72.1% 0.1457 -0.1147)
OKLCHoklch(72.1% 0.185 321.8)
XYZxyz(50.0381, 34.0700, 81.0154)
Luminance0.3407 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978E9 #88E978
analogous
#A178E9 #D978E9 #E978C1
triadic
#D978E9 #E9D978 #78E9D9
tetradic
#D978E9 #E9A178 #88E978 #78C1E9
square
#D978E9 #E9A178 #88E978 #78C1E9
split-complementary
#D978E9 #C1E978 #78E9A1
monochromatic
#AF20C6 #CA43E0 #D978E9 #E8ADF2 #F7E1FA

Accessibility & contrast

On white

2.69
#D978E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#D978E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978E9
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978E9#FFFFFF#000000##000000
##D978E91.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d978e9;
/* rgb */ color: rgb(217, 120, 233);
/* oklch */ color: oklch(72.1% 0.185 321.8);
Tailwind
colors: {
  custom: {
    50: '#e7a2f0',
    500: '#d978e9',
    950: '#000000',
  },
}
SCSS
$custom: #d978e9;
$custom-light: #e7a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#d978e9",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 233
  },
  "hsl": {
    "h": 291.504,
    "s": 71.975,
    "l": 69.216
  },
  "oklch": {
    "l": 0.72101,
    "c": 0.18547,
    "h": 321.8
  },
  "luminance": 0.34068
}

Semantic roles & 50–950 ramp

primary
#D978E9
secondary
#D3EFCE
accent
#D4112D
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F16
muted
#847F84

Preview Lab

Preview with #D978E9

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

Preview Lab → · Contrast checker → · Palette generator →

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