#D997FE#D997FE

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

Color values

HEX#D997FE
RGBrgb(217, 151, 254)
HSLhsl(278, 98%, 79%)
HSVhsv(278, 41%, 100%)
CMYKcmyk(14.6%, 40.6%, 0%, 0.4%)
CIE-LABlab(72.26, 42.63, -41.73)
CIE-LCHlch(72.26, 59.65, 315.61°)
OKLaboklab(77.81% 0.1062 -0.1154)
OKLCHoklch(77.81% 0.157 312.6)
XYZxyz(57.5683, 44.0418, 99.2150)
Luminance0.4404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997FE #BCFE97
analogous
#A697FE #D997FE #FE97EF
triadic
#D997FE #FED997 #97FED9
tetradic
#D997FE #FEA697 #BCFE97 #97EFFE
square
#D997FE #FEA697 #BCFE97 #97EFFE
split-complementary
#D997FE #EFFE97 #97FEA6
monochromatic
#AD1EFD #C35AFD #D997FE #EFD4FF #F4E1FF

Accessibility & contrast

On white

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

On black

9.81
#D997FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997FE
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997FE#FFFFFF#000000##000000
##D997FE1.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83AEFF
Deuteranopia (green-blind)
#94B3FB
Tritanopia (blue-blind)
#D6A6BF
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d997fe;
/* rgb */ color: rgb(217, 151, 254);
/* oklch */ color: oklch(77.8% 0.157 312.6);
Tailwind
colors: {
  custom: {
    50: '#e6b7ff',
    500: '#d997fe',
    950: '#000000',
  },
}
SCSS
$custom: #d997fe;
$custom-light: #e6b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d997fe",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 278.447,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77809,
    "c": 0.15689,
    "h": 312.6
  },
  "luminance": 0.44041
}

Semantic roles & 50–950 ramp

primary
#D997FE
secondary
#E1F7D4
accent
#E60052
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D997FE

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

Preview Lab → · Contrast checker → · Palette generator →

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