#D97BFC#D97BFC

#D97BFC is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.5% C 0.200 H 316.1°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#D97BFC
RGBrgb(217, 123, 252)
HSLhsl(284, 96%, 74%)
HSVhsv(284, 51%, 99%)
CMYKcmyk(13.9%, 51.2%, 0%, 1.2%)
CIE-LABlab(66.48, 56.72, -49.71)
CIE-LCHlch(66.48, 75.42, 318.77°)
OKLaboklab(73.47% 0.144 -0.1384)
OKLCHoklch(73.47% 0.2 316.1)
XYZxyz(53.2663, 35.9476, 96.2093)
Luminance0.3595 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BFC #9EFC7B
analogous
#987BFC #D97BFC #FC7BDE
triadic
#D97BFC #FCD97B #7BFCD9
tetradic
#D97BFC #FC987B #9EFC7B #7BDEFC
square
#D97BFC #FC987B #9EFC7B #7BDEFC
split-complementary
#D97BFC #DEFC7B #7BFC98
monochromatic
#B506F7 #C83FFB #D97BFC #EAB7FD #F6E1FE

Accessibility & contrast

On white

2.56
#D97BFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#D97BFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BFC
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BFC#FFFFFF#000000##000000
##D97BFC1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9CFF
Deuteranopia (green-blind)
#7DA4F9
Tritanopia (blue-blind)
#D78FB0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97bfc;
/* rgb */ color: rgb(217, 123, 252);
/* oklch */ color: oklch(73.5% 0.200 316.1);
Tailwind
colors: {
  custom: {
    50: '#e7a4fe',
    500: '#d97bfc',
    950: '#000000',
  },
}
SCSS
$custom: #d97bfc;
$custom-light: #e7a4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bfc",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 252
  },
  "hsl": {
    "h": 283.721,
    "s": 95.556,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73473,
    "c": 0.1997,
    "h": 316.1
  },
  "luminance": 0.35946
}

Semantic roles & 50–950 ramp

primary
#D97BFC
secondary
#DEF7D4
accent
#E6003E
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D97BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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