#D97BEB#D97BEB

#D97BEB is a light, vivid purple. Relative luminance 0.349; OKLCH L 72.6% C 0.183 H 321.0°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#D97BEB
RGBrgb(217, 123, 235)
HSLhsl(290, 74%, 70%)
HSVhsv(290, 48%, 92%)
CMYKcmyk(7.7%, 47.7%, 0%, 7.8%)
CIE-LABlab(65.68, 53.39, -41.61)
CIE-LCHlch(65.68, 67.69, 322.07°)
OKLaboklab(72.63% 0.1419 -0.1149)
OKLCHoklch(72.63% 0.183 321)
XYZxyz(50.6919, 34.9178, 82.6508)
Luminance0.3492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BEB #8DEB7B
analogous
#A17BEB #D97BEB #EB7BC5
triadic
#D97BEB #EBD97B #7BEBD9
tetradic
#D97BEB #EBA17B #8DEB7B #7BC5EB
square
#D97BEB #EBA17B #8DEB7B #7BC5EB
split-complementary
#D97BEB #C5EB7B #7BEBA1
monochromatic
#B11FCD #CA46E3 #D97BEB #E8B0F3 #F7E4FB

Accessibility & contrast

On white

2.63
#D97BEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#D97BEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BEB
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BEB#FFFFFF#000000##000000
##D97BEB1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99EF
Deuteranopia (green-blind)
#85A3E8
Tritanopia (blue-blind)
#DB8AA8
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97beb;
/* rgb */ color: rgb(217, 123, 235);
/* oklch */ color: oklch(72.6% 0.183 321.0);
Tailwind
colors: {
  custom: {
    50: '#e7a4f2',
    500: '#d97beb',
    950: '#000000',
  },
}
SCSS
$custom: #d97beb;
$custom-light: #e7a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d97beb",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 235
  },
  "hsl": {
    "h": 290.357,
    "s": 73.684,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72625,
    "c": 0.18262,
    "h": 321
  },
  "luminance": 0.34916
}

Semantic roles & 50–950 ramp

primary
#D97BEB
secondary
#D6F0D1
accent
#D61030
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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