#D97BFA#D97BFA

#D97BFA is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.4% C 0.198 H 316.7°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#D97BFA
RGBrgb(217, 123, 250)
HSLhsl(284, 93%, 73%)
HSVhsv(284, 51%, 98%)
CMYKcmyk(13.2%, 50.8%, 0%, 2%)
CIE-LABlab(66.38, 56.32, -48.77)
CIE-LCHlch(66.38, 74.50, 319.11°)
OKLaboklab(73.37% 0.1438 -0.1356)
OKLCHoklch(73.37% 0.198 316.7)
XYZxyz(52.9510, 35.8215, 94.5489)
Luminance0.3582 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BFA #9CFA7B
analogous
#997BFA #D97BFA #FA7BDC
triadic
#D97BFA #FAD97B #7BFAD9
tetradic
#D97BFA #FA997B #9CFA7B #7BDCFA
square
#D97BFA #FA997B #9CFA7B #7BDCFA
split-complementary
#D97BFA #DCFA7B #7BFA99
monochromatic
#B509F1 #C840F8 #D97BFA #EAB6FC #F7E2FE

Accessibility & contrast

On white

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

On black

8.16
#D97BFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BFA
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BFA#FFFFFF#000000##000000
##D97BFA1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#619BFE
Deuteranopia (green-blind)
#7EA4F7
Tritanopia (blue-blind)
#D88EAF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97bfa;
/* rgb */ color: rgb(217, 123, 250);
/* oklch */ color: oklch(73.4% 0.198 316.7);
Tailwind
colors: {
  custom: {
    50: '#e7a4fc',
    500: '#d97bfa',
    950: '#000000',
  },
}
SCSS
$custom: #d97bfa;
$custom-light: #e7a4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bfa",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 250
  },
  "hsl": {
    "h": 284.409,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.7337,
    "c": 0.19766,
    "h": 316.7
  },
  "luminance": 0.3582
}

Semantic roles & 50–950 ramp

primary
#D97BFA
secondary
#DEF6D5
accent
#E6003C
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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