#D978DB#D978DB

#D978DB is a light, vivid purple. Relative luminance 0.333; OKLCH L 71.4% C 0.172 H 326.5°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#D978DB
RGBrgb(217, 120, 219)
HSLhsl(299, 58%, 66%)
HSVhsv(299, 45%, 86%)
CMYKcmyk(0.9%, 45.2%, 0%, 14.1%)
CIE-LABlab(64.40, 51.93, -34.72)
CIE-LCHlch(64.40, 62.46, 326.23°)
OKLaboklab(71.45% 0.1435 -0.0951)
OKLCHoklch(71.45% 0.172 326.5)
XYZxyz(48.1170, 33.3015, 70.8974)
Luminance0.3330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978DB #7ADB78
analogous
#A878DB #D978DB #DB78AC
triadic
#D978DB #DBD978 #78DBD9
tetradic
#D978DB #DBA878 #7ADB78 #78ACDB
square
#D978DB #DBA878 #7ADB78 #78ACDB
split-complementary
#D978DB #ACDB78 #78DBA8
monochromatic
#A82EAB #CB48CE #D978DB #E7A8E8 #F4D9F5

Accessibility & contrast

On white

2.74
#D978DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#D978DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978DB
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978DB#FFFFFF#000000##000000
##D978DB1.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F94DE
Deuteranopia (green-blind)
#8AA1D8
Tritanopia (blue-blind)
#DE829F
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d978db;
/* rgb */ color: rgb(217, 120, 219);
/* oklch */ color: oklch(71.4% 0.172 326.5);
Tailwind
colors: {
  custom: {
    50: '#e7a2e6',
    500: '#d978db',
    950: '#000000',
  },
}
SCSS
$custom: #d978db;
$custom-light: #e7a2e6;
$custom-dark: #000000;
JSON
{
  "hex": "#d978db",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 219
  },
  "hsl": {
    "h": 298.788,
    "s": 57.895,
    "l": 66.471
  },
  "oklch": {
    "l": 0.71445,
    "c": 0.17217,
    "h": 326.5
  },
  "luminance": 0.33299
}

Semantic roles & 50–950 ramp

primary
#D978DB
secondary
#C8E7C7
accent
#C52023
background
#FEFAFE
surface
#FDF4FC
border
#D5CED5
text
#160F16
muted
#847F84

Preview Lab

Preview with #D978DB

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

Preview Lab → · Contrast checker → · Palette generator →

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