#D997FD#D997FD

#D997FD is a light, vivid violet. Relative luminance 0.440; OKLCH L 77.8% C 0.156 H 312.9°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#D997FD
RGBrgb(217, 151, 253)
HSLhsl(279, 96%, 79%)
HSVhsv(279, 40%, 99%)
CMYKcmyk(14.2%, 40.3%, 0%, 0.8%)
CIE-LABlab(72.21, 42.42, -41.25)
CIE-LCHlch(72.21, 59.17, 315.80°)
OKLaboklab(77.76% 0.1061 -0.1141)
OKLCHoklch(77.76% 0.156 312.9)
XYZxyz(57.4085, 43.9779, 98.3738)
Luminance0.4398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997FD #BBFD97
analogous
#A697FD #D997FD #FD97EE
triadic
#D997FD #FDD997 #97FDD9
tetradic
#D997FD #FDA697 #BBFD97 #97EEFD
square
#D997FD #FDA697 #BBFD97 #97EEFD
split-complementary
#D997FD #EEFD97 #97FDA6
monochromatic
#AD1FFB #C35BFC #D997FD #EFD3FE #F4E1FE

Accessibility & contrast

On white

2.14
#D997FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#D997FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997FD
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997FD#FFFFFF#000000##000000
##D997FD1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ADFF
Deuteranopia (green-blind)
#94B3FA
Tritanopia (blue-blind)
#D6A5BE
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d997fd;
/* rgb */ color: rgb(217, 151, 253);
/* oklch */ color: oklch(77.8% 0.156 312.9);
Tailwind
colors: {
  custom: {
    50: '#e6b7fe',
    500: '#d997fd',
    950: '#000000',
  },
}
SCSS
$custom: #d997fd;
$custom-light: #e6b7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d997fd",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 278.824,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.77763,
    "c": 0.15576,
    "h": 312.9
  },
  "luminance": 0.43977
}

Semantic roles & 50–950 ramp

primary
#D997FD
secondary
#E0F7D4
accent
#E60051
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D997FD

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

Preview Lab → · Contrast checker → · Palette generator →

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