#D978F7#D978F7

#D978F7 is a light, vivid purple. Relative luminance 0.349; OKLCH L 72.8% C 0.199 H 317.7°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#D978F7
RGBrgb(217, 120, 247)
HSLhsl(286, 89%, 72%)
HSVhsv(286, 51%, 97%)
CMYKcmyk(12.1%, 51.4%, 0%, 3.1%)
CIE-LABlab(65.67, 57.21, -48.24)
CIE-LCHlch(65.67, 74.84, 319.86°)
OKLaboklab(72.8% 0.1474 -0.1341)
OKLCHoklch(72.8% 0.199 317.7)
XYZxyz(52.1179, 34.9019, 91.9690)
Luminance0.3490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978F7 #96F778
analogous
#9A78F7 #D978F7 #F778D5
triadic
#D978F7 #F7D978 #78F7D9
tetradic
#D978F7 #F79A78 #96F778 #78D5F7
square
#D978F7 #F79A78 #96F778 #78D5F7
split-complementary
#D978F7 #D5F778 #78F79A
monochromatic
#B40EE7 #C93EF4 #D978F7 #E9B2FA #F7E2FD

Accessibility & contrast

On white

2.63
#D978F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#D978F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978F7
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978F7#FFFFFF#000000##000000
##D978F71.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E99FB
Deuteranopia (green-blind)
#7DA3F4
Tritanopia (blue-blind)
#D98BAD
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d978f7;
/* rgb */ color: rgb(217, 120, 247);
/* oklch */ color: oklch(72.8% 0.199 317.7);
Tailwind
colors: {
  custom: {
    50: '#e7a2fa',
    500: '#d978f7',
    950: '#000000',
  },
}
SCSS
$custom: #d978f7;
$custom-light: #e7a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d978f7",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 285.827,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.72798,
    "c": 0.19929,
    "h": 317.7
  },
  "luminance": 0.349
}

Semantic roles & 50–950 ramp

primary
#D978F7
secondary
#DDF5D5
accent
#E50036
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978F7

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

Preview Lab → · Contrast checker → · Palette generator →

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