#D97BF6#D97BF6

#D97BF6 is a light, vivid purple. Relative luminance 0.356; OKLCH L 73.2% C 0.194 H 317.8°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#D97BF6
RGBrgb(217, 123, 246)
HSLhsl(286, 87%, 72%)
HSVhsv(286, 50%, 96%)
CMYKcmyk(11.8%, 50%, 0%, 3.5%)
CIE-LABlab(66.19, 55.52, -46.87)
CIE-LCHlch(66.19, 72.66, 319.83°)
OKLaboklab(73.17% 0.1434 -0.1301)
OKLCHoklch(73.17% 0.194 317.8)
XYZxyz(52.3305, 35.5733, 91.2807)
Luminance0.3557 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BF6 #98F67B
analogous
#9C7BF6 #D97BF6 #F67BD5
triadic
#D97BF6 #F6D97B #7BF6D9
tetradic
#D97BF6 #F69C7B #98F67B #7BD5F6
square
#D97BF6 #F69C7B #98F67B #7BD5F6
split-complementary
#D97BF6 #D5F67B #7BF69C
monochromatic
#B410E7 #C942F2 #D97BF6 #E9B4FA #F7E2FD

Accessibility & contrast

On white

2.59
#D97BF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#D97BF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BF6
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BF6#FFFFFF#000000##000000
##D97BF61.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#639BFA
Deuteranopia (green-blind)
#80A4F3
Tritanopia (blue-blind)
#D98DAD
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97bf6;
/* rgb */ color: rgb(217, 123, 246);
/* oklch */ color: oklch(73.2% 0.194 317.8);
Tailwind
colors: {
  custom: {
    50: '#e7a4f9',
    500: '#d97bf6',
    950: '#000000',
  },
}
SCSS
$custom: #d97bf6;
$custom-light: #e7a4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bf6",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 285.854,
    "s": 87.234,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73167,
    "c": 0.19361,
    "h": 317.8
  },
  "luminance": 0.35571
}

Semantic roles & 50–950 ramp

primary
#D97BF6
secondary
#DDF5D6
accent
#E40237
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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