#D978F9#D978F9

#D978F9 is a light, highly saturated purple. Relative luminance 0.350; OKLCH L 72.9% C 0.201 H 317.2°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#D978F9
RGBrgb(217, 120, 249)
HSLhsl(285, 91%, 72%)
HSVhsv(285, 52%, 98%)
CMYKcmyk(12.9%, 51.8%, 0%, 2.4%)
CIE-LABlab(65.77, 57.61, -49.19)
CIE-LCHlch(65.77, 75.75, 319.51°)
OKLaboklab(72.9% 0.1476 -0.1368)
OKLCHoklch(72.9% 0.201 317.2)
XYZxyz(52.4282, 35.0260, 93.6031)
Luminance0.3502 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978F9 #98F978
analogous
#9878F9 #D978F9 #F978D9
triadic
#D978F9 #F9D978 #78F9D9
tetradic
#D978F9 #F99878 #98F978 #78D9F9
square
#D978F9 #F99878 #98F978 #78D9F9
split-complementary
#D978F9 #D9F978 #78F998
monochromatic
#B40AEC #C93DF6 #D978F9 #E9B3FC #F7E2FE

Accessibility & contrast

On white

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

On black

8.00
#D978F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978F9
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978F9#FFFFFF#000000##000000
##D978F91.002.628.008.00
#FFFFFF2.621.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9AFD
Deuteranopia (green-blind)
#7CA3F6
Tritanopia (blue-blind)
#D88CAE
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d978f9;
/* rgb */ color: rgb(217, 120, 249);
/* oklch */ color: oklch(72.9% 0.201 317.2);
Tailwind
colors: {
  custom: {
    50: '#e7a2fc',
    500: '#d978f9',
    950: '#000000',
  },
}
SCSS
$custom: #d978f9;
$custom-light: #e7a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d978f9",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 285.116,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72901,
    "c": 0.20128,
    "h": 317.2
  },
  "luminance": 0.35024
}

Semantic roles & 50–950 ramp

primary
#D978F9
secondary
#DDF6D5
accent
#E60039
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978F9

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

Preview Lab → · Contrast checker → · Palette generator →

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