#D879F9#D879F9

#D879F9 is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.9% C 0.199 H 316.7°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#D879F9
RGBrgb(216, 121, 249)
HSLhsl(285, 91%, 73%)
HSVhsv(285, 51%, 98%)
CMYKcmyk(13.3%, 51.4%, 0%, 2.4%)
CIE-LABlab(65.84, 56.85, -49.09)
CIE-LCHlch(65.84, 75.11, 319.19°)
OKLaboklab(72.93% 0.1452 -0.1366)
OKLCHoklch(72.93% 0.199 316.7)
XYZxyz(52.2527, 35.1150, 93.6295)
Luminance0.3511 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D879F9 #9AF979
analogous
#9879F9 #D879F9 #F979DA
triadic
#D879F9 #F9D879 #79F9D8
tetradic
#D879F9 #F99879 #9AF979 #79DAF9
square
#D879F9 #F99879 #9AF979 #79DAF9
split-complementary
#D879F9 #DAF979 #79F998
monochromatic
#B30BED #C73EF6 #D879F9 #E9B4FC #F6E2FE

Accessibility & contrast

On white

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

On black

8.02
#D879F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D879F9
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D879F9#FFFFFF#000000##000000
##D879F91.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d879f9;
/* rgb */ color: rgb(216, 121, 249);
/* oklch */ color: oklch(72.9% 0.199 316.7);
Tailwind
colors: {
  custom: {
    50: '#e6a3fc',
    500: '#d879f9',
    950: '#000000',
  },
}
SCSS
$custom: #d879f9;
$custom-light: #e6a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d879f9",
  "rgb": {
    "r": 216,
    "g": 121,
    "b": 249
  },
  "hsl": {
    "h": 284.531,
    "s": 91.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.72926,
    "c": 0.19931,
    "h": 316.7
  },
  "luminance": 0.35113
}

Semantic roles & 50–950 ramp

primary
#D879F9
secondary
#DEF6D5
accent
#E6003B
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D879F9

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

Preview Lab → · Contrast checker → · Palette generator →

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