#D97BFB#D97BFB

#D97BFB is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.4% C 0.199 H 316.4°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#D97BFB
RGBrgb(217, 123, 251)
HSLhsl(284, 94%, 73%)
HSVhsv(284, 51%, 98%)
CMYKcmyk(13.5%, 51%, 0%, 1.6%)
CIE-LABlab(66.43, 56.52, -49.24)
CIE-LCHlch(66.43, 74.96, 318.94°)
OKLaboklab(73.42% 0.1439 -0.137)
OKLCHoklch(73.42% 0.199 316.4)
XYZxyz(53.1082, 35.8844, 95.3769)
Luminance0.3588 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BFB #9DFB7B
analogous
#997BFB #D97BFB #FB7BDD
triadic
#D97BFB #FBD97B #7BFBD9
tetradic
#D97BFB #FB997B #9DFB7B #7BDDFB
square
#D97BFB #FB997B #9DFB7B #7BDDFB
split-complementary
#D97BFB #DDFB7B #7BFB99
monochromatic
#B507F4 #C840F9 #D97BFB #EAB6FD #F6E1FE

Accessibility & contrast

On white

2.57
#D97BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#D97BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BFB
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BFB#FFFFFF#000000##000000
##D97BFB1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#7DA4F8
Tritanopia (blue-blind)
#D88EB0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97bfb;
/* rgb */ color: rgb(217, 123, 251);
/* oklch */ color: oklch(73.4% 0.199 316.4);
Tailwind
colors: {
  custom: {
    50: '#e7a4fd',
    500: '#d97bfb',
    950: '#000000',
  },
}
SCSS
$custom: #d97bfb;
$custom-light: #e7a4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bfb",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 284.063,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73421,
    "c": 0.19868,
    "h": 316.4
  },
  "luminance": 0.35883
}

Semantic roles & 50–950 ramp

primary
#D97BFB
secondary
#DEF6D5
accent
#E6003D
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D97BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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