#D978FB#D978FB

#D978FB is a light, highly saturated purple. Relative luminance 0.351; OKLCH L 73.0% C 0.203 H 316.6°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#D978FB
RGBrgb(217, 120, 251)
HSLhsl(284, 94%, 73%)
HSVhsv(284, 52%, 98%)
CMYKcmyk(13.5%, 52.2%, 0%, 1.6%)
CIE-LABlab(65.87, 58.00, -50.13)
CIE-LCHlch(65.87, 76.66, 319.16°)
OKLaboklab(73% 0.1478 -0.1396)
OKLCHoklch(73% 0.203 316.6)
XYZxyz(52.7418, 35.1514, 95.2547)
Luminance0.3515 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978FB #9AFB78
analogous
#9778FB #D978FB #FB78DC
triadic
#D978FB #FBD978 #78FBD9
tetradic
#D978FB #FB9778 #9AFB78 #78DCFB
square
#D978FB #FB9778 #9AFB78 #78DCFB
split-complementary
#D978FB #DCFB78 #78FB97
monochromatic
#B507F1 #C83DF9 #D978FB #EAB3FD #F7E1FE

Accessibility & contrast

On white

2.62
#D978FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#D978FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978FB
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978FB#FFFFFF#000000##000000
##D978FB1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B9AFF
Deuteranopia (green-blind)
#7BA3F8
Tritanopia (blue-blind)
#D88CAF
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d978fb;
/* rgb */ color: rgb(217, 120, 251);
/* oklch */ color: oklch(73.0% 0.203 316.6);
Tailwind
colors: {
  custom: {
    50: '#e7a2fd',
    500: '#d978fb',
    950: '#000000',
  },
}
SCSS
$custom: #d978fb;
$custom-light: #e7a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d978fb",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 284.427,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73004,
    "c": 0.20329,
    "h": 316.6
  },
  "luminance": 0.3515
}

Semantic roles & 50–950 ramp

primary
#D978FB
secondary
#DDF6D5
accent
#E6003C
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D978FB

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

Preview Lab → · Contrast checker → · Palette generator →

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