#D978FE#D978FE

#D978FE is a light, highly saturated purple. Relative luminance 0.353; OKLCH L 73.2% C 0.206 H 315.9°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#D978FE
RGBrgb(217, 120, 254)
HSLhsl(283, 99%, 73%)
HSVhsv(283, 53%, 100%)
CMYKcmyk(14.6%, 52.8%, 0%, 0.4%)
CIE-LABlab(66.01, 58.60, -51.54)
CIE-LCHlch(66.01, 78.04, 318.67°)
OKLaboklab(73.16% 0.1481 -0.1437)
OKLCHoklch(73.16% 0.206 315.9)
XYZxyz(53.2184, 35.3421, 97.7650)
Luminance0.3534 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978FE #9DFE78
analogous
#9678FE #D978FE #FE78E0
triadic
#D978FE #FED978 #78FED9
tetradic
#D978FE #FE9678 #9DFE78 #78E0FE
square
#D978FE #FE9678 #9DFE78 #78E0FE
split-complementary
#D978FE #E0FE78 #78FE96
monochromatic
#B502FA #C83BFE #D978FE #EAB5FE #F6E1FF

Accessibility & contrast

On white

2.60
#D978FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#D978FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978FE
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978FE#FFFFFF#000000##000000
##D978FE1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#599BFF
Deuteranopia (green-blind)
#79A3FA
Tritanopia (blue-blind)
#D78DB0
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d978fe;
/* rgb */ color: rgb(217, 120, 254);
/* oklch */ color: oklch(73.2% 0.206 315.9);
Tailwind
colors: {
  custom: {
    50: '#e7a2ff',
    500: '#d978fe',
    950: '#000000',
  },
}
SCSS
$custom: #d978fe;
$custom-light: #e7a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d978fe",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 254
  },
  "hsl": {
    "h": 283.433,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73161,
    "c": 0.20631,
    "h": 315.9
  },
  "luminance": 0.3534
}

Semantic roles & 50–950 ramp

primary
#D978FE
secondary
#DEF7D4
accent
#E6003F
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D978FE

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

Preview Lab → · Contrast checker → · Palette generator →

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