#D978DF#D978DF

#D978DF is a light, vivid purple. Relative luminance 0.335; OKLCH L 71.6% C 0.176 H 325.1°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#D978DF
RGBrgb(217, 120, 223)
HSLhsl(297, 62%, 67%)
HSVhsv(297, 46%, 87%)
CMYKcmyk(2.7%, 46.2%, 0%, 12.5%)
CIE-LABlab(64.58, 52.65, -36.68)
CIE-LCHlch(64.58, 64.17, 325.14°)
OKLaboklab(71.63% 0.1442 -0.1008)
OKLCHoklch(71.63% 0.176 325.1)
XYZxyz(48.6499, 33.5147, 73.7041)
Luminance0.3351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978DF #7EDF78
analogous
#A678DF #D978DF #DF78B2
triadic
#D978DF #DFD978 #78DFD9
tetradic
#D978DF #DFA678 #7EDF78 #78B2DF
square
#D978DF #DFA678 #7EDF78 #78B2DF
split-complementary
#D978DF #B2DF78 #78DFA6
monochromatic
#AA2AB2 #CB47D3 #D978DF #E7A9EB #F5DBF6

Accessibility & contrast

On white

2.73
#D978DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#D978DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978DF
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978DF#FFFFFF#000000##000000
##D978DF1.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D95E3
Deuteranopia (green-blind)
#89A1DC
Tritanopia (blue-blind)
#DD84A1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d978df;
/* rgb */ color: rgb(217, 120, 223);
/* oklch */ color: oklch(71.6% 0.176 325.1);
Tailwind
colors: {
  custom: {
    50: '#e7a2e9',
    500: '#d978df',
    950: '#000000',
  },
}
SCSS
$custom: #d978df;
$custom-light: #e7a2e9;
$custom-dark: #000000;
JSON
{
  "hex": "#d978df",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 296.505,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.71628,
    "c": 0.1759,
    "h": 325.1
  },
  "luminance": 0.33512
}

Semantic roles & 50–950 ramp

primary
#D978DF
secondary
#CBEAC9
accent
#C91C26
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F16
muted
#847F84

Preview Lab

Preview with #D978DF

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

Preview Lab → · Contrast checker → · Palette generator →

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