#D97EFB#D97EFB

#D97EFB is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.8% C 0.194 H 316.2°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#D97EFB
RGBrgb(217, 126, 251)
HSLhsl(284, 94%, 74%)
HSVhsv(284, 50%, 98%)
CMYKcmyk(13.5%, 49.8%, 0%, 1.6%)
CIE-LABlab(67.01, 55.01, -48.33)
CIE-LCHlch(67.01, 73.23, 318.70°)
OKLaboklab(73.85% 0.1399 -0.1344)
OKLCHoklch(73.85% 0.194 316.2)
XYZxyz(53.4861, 36.6401, 95.5028)
Luminance0.3664 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EFB #A0FB7E
analogous
#9B7EFB #D97EFB #FB7EDF
triadic
#D97EFB #FBD97E #7EFBD9
tetradic
#D97EFB #FB9B7E #A0FB7E #7EDFFB
square
#D97EFB #FB9B7E #A0FB7E #7EDFFB
split-complementary
#D97EFB #DFFB7E #7EFB9B
monochromatic
#B608F7 #C843F9 #D97EFB #EAB9FD #F6E1FE

Accessibility & contrast

On white

2.52
#D97EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#D97EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EFB
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EFB#FFFFFF#000000##000000
##D97EFB1.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#649DFF
Deuteranopia (green-blind)
#80A6F8
Tritanopia (blue-blind)
#D791B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97efb;
/* rgb */ color: rgb(217, 126, 251);
/* oklch */ color: oklch(73.8% 0.194 316.2);
Tailwind
colors: {
  custom: {
    50: '#e7a6fd',
    500: '#d97efb',
    950: '#000000',
  },
}
SCSS
$custom: #d97efb;
$custom-light: #e7a6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d97efb",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 283.68,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73846,
    "c": 0.19401,
    "h": 316.2
  },
  "luminance": 0.36638
}

Semantic roles & 50–950 ramp

primary
#D97EFB
secondary
#DEF6D5
accent
#E6003E
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D97EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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