#D97BF9#D97BF9

#D97BF9 is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.3% C 0.197 H 316.9°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#D97BF9
RGBrgb(217, 123, 249)
HSLhsl(285, 91%, 73%)
HSVhsv(285, 51%, 98%)
CMYKcmyk(12.9%, 50.6%, 0%, 2.4%)
CIE-LABlab(66.34, 56.12, -48.29)
CIE-LCHlch(66.34, 74.04, 319.28°)
OKLaboklab(73.32% 0.1437 -0.1343)
OKLCHoklch(73.32% 0.197 316.9)
XYZxyz(52.7946, 35.7589, 93.7253)
Luminance0.3576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BF9 #9BF97B
analogous
#9A7BF9 #D97BF9 #F97BDA
triadic
#D97BF9 #F9D97B #7BF9D9
tetradic
#D97BF9 #F99A7B #9BF97B #7BDAF9
square
#D97BF9 #F99A7B #9BF97B #7BDAF9
split-complementary
#D97BF9 #DAF97B #7BF99A
monochromatic
#B50BEF #C840F6 #D97BF9 #EAB6FC #F7E2FE

Accessibility & contrast

On white

2.58
#D97BF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#D97BF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BF9
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BF9#FFFFFF#000000##000000
##D97BF91.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#619BFD
Deuteranopia (green-blind)
#7EA4F6
Tritanopia (blue-blind)
#D88EAF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97bf9;
/* rgb */ color: rgb(217, 123, 249);
/* oklch */ color: oklch(73.3% 0.197 316.9);
Tailwind
colors: {
  custom: {
    50: '#e7a4fc',
    500: '#d97bf9',
    950: '#000000',
  },
}
SCSS
$custom: #d97bf9;
$custom-light: #e7a4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bf9",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 249
  },
  "hsl": {
    "h": 284.762,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.73319,
    "c": 0.19665,
    "h": 316.9
  },
  "luminance": 0.35757
}

Semantic roles & 50–950 ramp

primary
#D97BF9
secondary
#DDF6D5
accent
#E6003A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97BF9

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

Preview Lab → · Contrast checker → · Palette generator →

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