#D97EFE#D97EFE

#D97EFE is a light, vivid purple. Relative luminance 0.368; OKLCH L 74.0% C 0.197 H 315.4°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#D97EFE
RGBrgb(217, 126, 254)
HSLhsl(283, 98%, 75%)
HSVhsv(283, 50%, 100%)
CMYKcmyk(14.6%, 50.4%, 0%, 0.4%)
CIE-LABlab(67.15, 55.62, -49.75)
CIE-LCHlch(67.15, 74.62, 318.19°)
OKLaboklab(74% 0.1403 -0.1385)
OKLCHoklch(74% 0.197 315.4)
XYZxyz(53.9627, 36.8308, 98.0131)
Luminance0.3683 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EFE #A3FE7E
analogous
#997EFE #D97EFE #FE7EE3
triadic
#D97EFE #FED97E #7EFED9
tetradic
#D97EFE #FE997E #A3FE7E #7EE3FE
square
#D97EFE #FE997E #A3FE7E #7EE3FE
split-complementary
#D97EFE #E3FE7E #7EFE99
monochromatic
#B505FD #C741FE #D97EFE #EBBBFE #F6E1FF

Accessibility & contrast

On white

2.51
#D97EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#D97EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EFE
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EFE#FFFFFF#000000##000000
##D97EFE1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#629EFF
Deuteranopia (green-blind)
#7EA6FB
Tritanopia (blue-blind)
#D792B3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97efe;
/* rgb */ color: rgb(217, 126, 254);
/* oklch */ color: oklch(74.0% 0.197 315.4);
Tailwind
colors: {
  custom: {
    50: '#e7a6ff',
    500: '#d97efe',
    950: '#000000',
  },
}
SCSS
$custom: #d97efe;
$custom-light: #e7a6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97efe",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 282.656,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73999,
    "c": 0.19711,
    "h": 315.4
  },
  "luminance": 0.36829
}

Semantic roles & 50–950 ramp

primary
#D97EFE
secondary
#DEF7D4
accent
#E60042
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D97EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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