#D997FB#D997FB

#D997FB is a light, vivid violet. Relative luminance 0.439; OKLCH L 77.7% C 0.153 H 313.5°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#D997FB
RGBrgb(217, 151, 251)
HSLhsl(280, 93%, 79%)
HSVhsv(280, 40%, 98%)
CMYKcmyk(13.5%, 39.8%, 0%, 1.6%)
CIE-LABlab(72.13, 42.01, -40.30)
CIE-LCHlch(72.13, 58.21, 316.19°)
OKLaboklab(77.67% 0.1057 -0.1113)
OKLCHoklch(77.67% 0.154 313.5)
XYZxyz(57.0916, 43.8511, 96.7047)
Luminance0.4385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997FB #B9FB97
analogous
#A797FB #D997FB #FB97EB
triadic
#D997FB #FBD997 #97FBD9
tetradic
#D997FB #FBA797 #B9FB97 #97EBFB
square
#D997FB #FBA797 #B9FB97 #97EBFB
split-complementary
#D997FB #EBFB97 #97FBA7
monochromatic
#AE21F6 #C35CF9 #D997FB #EFD2FD #F4E2FE

Accessibility & contrast

On white

2.15
#D997FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.77
#D997FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997FB
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997FB#FFFFFF#000000##000000
##D997FB1.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ADFF
Deuteranopia (green-blind)
#95B3F8
Tritanopia (blue-blind)
#D6A5BD
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d997fb;
/* rgb */ color: rgb(217, 151, 251);
/* oklch */ color: oklch(77.7% 0.153 313.5);
Tailwind
colors: {
  custom: {
    50: '#e6b6fd',
    500: '#d997fb',
    950: '#000000',
  },
}
SCSS
$custom: #d997fb;
$custom-light: #e6b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d997fb",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 279.6,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.77671,
    "c": 0.1535,
    "h": 313.5
  },
  "luminance": 0.4385
}

Semantic roles & 50–950 ramp

primary
#D997FB
secondary
#E0F6D5
accent
#E6004E
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D997FB

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

Preview Lab → · Contrast checker → · Palette generator →

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