#D97FEB#D97FEB

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

Color values

HEX#D97FEB
RGBrgb(217, 127, 235)
HSLhsl(290, 73%, 71%)
HSVhsv(290, 46%, 92%)
CMYKcmyk(7.7%, 46%, 0%, 7.8%)
CIE-LABlab(66.47, 51.37, -40.38)
CIE-LCHlch(66.47, 65.34, 321.83°)
OKLaboklab(73.21% 0.1364 -0.1114)
OKLCHoklch(73.21% 0.176 320.8)
XYZxyz(51.1983, 35.9306, 82.8195)
Luminance0.3593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FEB #91EB7F
analogous
#A37FEB #D97FEB #EB7FC7
triadic
#D97FEB #EBD97F #7FEBD9
tetradic
#D97FEB #EBA37F #91EB7F #7FC7EB
square
#D97FEB #EBA37F #91EB7F #7FC7EB
split-complementary
#D97FEB #C7EB7F #7FEBA3
monochromatic
#B220CF #C94AE3 #D97FEB #E9B4F3 #F7E5FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D97FEB#FFFFFF#000000##000000
##D97FEB1.002.578.198.19
#FFFFFF2.571.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9BEF
Deuteranopia (green-blind)
#88A5E8
Tritanopia (blue-blind)
#DB8DAA
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97feb;
/* rgb */ color: rgb(217, 127, 235);
/* oklch */ color: oklch(73.2% 0.176 320.8);
Tailwind
colors: {
  custom: {
    50: '#e7a6f2',
    500: '#d97feb',
    950: '#000000',
  },
}
SCSS
$custom: #d97feb;
$custom-light: #e7a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d97feb",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 290,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.73206,
    "c": 0.17615,
    "h": 320.8
  },
  "luminance": 0.35929
}

Semantic roles & 50–950 ramp

primary
#D97FEB
secondary
#D9F1D5
accent
#D51031
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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