#D997FC#D997FC

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

Color values

HEX#D997FC
RGBrgb(217, 151, 252)
HSLhsl(279, 94%, 79%)
HSVhsv(279, 40%, 99%)
CMYKcmyk(13.9%, 40.1%, 0%, 1.2%)
CIE-LABlab(72.17, 42.21, -40.78)
CIE-LCHlch(72.17, 58.69, 315.99°)
OKLaboklab(77.72% 0.1059 -0.1127)
OKLCHoklch(77.72% 0.155 313.2)
XYZxyz(57.2497, 43.9144, 97.5371)
Luminance0.4391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997FC #BAFC97
analogous
#A797FC #D997FC #FC97ED
triadic
#D997FC #FCD997 #97FCD9
tetradic
#D997FC #FCA797 #BAFC97 #97EDFC
square
#D997FC #FCA797 #BAFC97 #97EDFC
split-complementary
#D997FC #EDFC97 #97FCA7
monochromatic
#AE20F9 #C35CFA #D997FC #EFD2FE #F4E1FE

Accessibility & contrast

On white

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

On black

9.78
#D997FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997FC
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997FC#FFFFFF#000000##000000
##D997FC1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d997fc;
/* rgb */ color: rgb(217, 151, 252);
/* oklch */ color: oklch(77.7% 0.155 313.2);
Tailwind
colors: {
  custom: {
    50: '#e6b6fd',
    500: '#d997fc',
    950: '#000000',
  },
}
SCSS
$custom: #d997fc;
$custom-light: #e6b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d997fc",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 279.208,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.77717,
    "c": 0.15463,
    "h": 313.2
  },
  "luminance": 0.43913
}

Semantic roles & 50–950 ramp

primary
#D997FC
secondary
#E0F6D5
accent
#E60050
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D997FC

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

Preview Lab → · Contrast checker → · Palette generator →

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