#D97BF8#D97BF8

#D97BF8 is a light, vivid purple. Relative luminance 0.357; OKLCH L 73.3% C 0.196 H 317.2°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#D97BF8
RGBrgb(217, 123, 248)
HSLhsl(285, 90%, 73%)
HSVhsv(285, 50%, 97%)
CMYKcmyk(12.5%, 50.4%, 0%, 2.7%)
CIE-LABlab(66.29, 55.92, -47.82)
CIE-LCHlch(66.29, 73.58, 319.46°)
OKLaboklab(73.27% 0.1436 -0.1329)
OKLCHoklch(73.27% 0.196 317.2)
XYZxyz(52.6391, 35.6967, 92.9060)
Luminance0.3569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BF8 #9AF87B
analogous
#9A7BF8 #D97BF8 #F87BD8
triadic
#D97BF8 #F8D97B #7BF8D9
tetradic
#D97BF8 #F89A7B #9AF87B #7BD8F8
square
#D97BF8 #F89A7B #9AF87B #7BD8F8
split-complementary
#D97BF8 #D8F87B #7BF89A
monochromatic
#B50DEC #C841F5 #D97BF8 #EAB5FB #F7E2FD

Accessibility & contrast

On white

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

On black

8.14
#D97BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BF8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BF8#FFFFFF#000000##000000
##D97BF81.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFC
Deuteranopia (green-blind)
#7FA4F5
Tritanopia (blue-blind)
#D88EAE
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97bf8;
/* rgb */ color: rgb(217, 123, 248);
/* oklch */ color: oklch(73.3% 0.196 317.2);
Tailwind
colors: {
  custom: {
    50: '#e7a4fb',
    500: '#d97bf8',
    950: '#000000',
  },
}
SCSS
$custom: #d97bf8;
$custom-light: #e7a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bf8",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 285.12,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73268,
    "c": 0.19563,
    "h": 317.2
  },
  "luminance": 0.35695
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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