#D97BF7#D97BF7

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

Color values

HEX#D97BF7
RGBrgb(217, 123, 247)
HSLhsl(285, 89%, 73%)
HSVhsv(285, 50%, 97%)
CMYKcmyk(12.1%, 50.2%, 0%, 3.1%)
CIE-LABlab(66.24, 55.72, -47.35)
CIE-LCHlch(66.24, 73.12, 319.65°)
OKLaboklab(73.22% 0.1435 -0.1315)
OKLCHoklch(73.22% 0.195 317.5)
XYZxyz(52.4844, 35.6348, 92.0912)
Luminance0.3563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BF7 #99F77B
analogous
#9B7BF7 #D97BF7 #F77BD7
triadic
#D97BF7 #F7D97B #7BF7D9
tetradic
#D97BF7 #F79B7B #99F77B #7BD7F7
square
#D97BF7 #F79B7B #99F77B #7BD7F7
split-complementary
#D97BF7 #D7F77B #7BF79B
monochromatic
#B40EE9 #C841F4 #D97BF7 #EAB5FA #F7E2FD

Accessibility & contrast

On white

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

On black

8.13
#D97BF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BF7
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BF7#FFFFFF#000000##000000
##D97BF71.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#639BFB
Deuteranopia (green-blind)
#7FA4F4
Tritanopia (blue-blind)
#D88DAE
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97bf7;
/* rgb */ color: rgb(217, 123, 247);
/* oklch */ color: oklch(73.2% 0.195 317.5);
Tailwind
colors: {
  custom: {
    50: '#e7a4fa',
    500: '#d97bf7',
    950: '#000000',
  },
}
SCSS
$custom: #d97bf7;
$custom-light: #e7a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bf7",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 247
  },
  "hsl": {
    "h": 285.484,
    "s": 88.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73217,
    "c": 0.19462,
    "h": 317.5
  },
  "luminance": 0.35633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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