#D97EF8#D97EF8

#D97EF8 is a light, vivid purple. Relative luminance 0.365; OKLCH L 73.7% C 0.191 H 317.0°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#D97EF8
RGBrgb(217, 126, 248)
HSLhsl(285, 90%, 73%)
HSVhsv(285, 49%, 97%)
CMYKcmyk(12.5%, 49.2%, 0%, 2.7%)
CIE-LABlab(66.86, 54.41, -46.91)
CIE-LCHlch(66.86, 71.84, 319.23°)
OKLaboklab(73.69% 0.1396 -0.1303)
OKLCHoklch(73.69% 0.191 317)
XYZxyz(53.0170, 36.4524, 93.0320)
Luminance0.3645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EF8 #9DF87E
analogous
#9C7EF8 #D97EF8 #F87EDA
triadic
#D97EF8 #F8D97E #7EF8D9
tetradic
#D97EF8 #F89C7E #9DF87E #7EDAF8
square
#D97EF8 #F89C7E #9DF87E #7EDAF8
split-complementary
#D97EF8 #DAF87E #7EF89C
monochromatic
#B50DEF #C844F5 #D97EF8 #EAB8FB #F6E2FD

Accessibility & contrast

On white

2.53
#D97EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#D97EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EF8
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EF8#FFFFFF#000000##000000
##D97EF81.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#669DFC
Deuteranopia (green-blind)
#81A6F5
Tritanopia (blue-blind)
#D890B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ef8;
/* rgb */ color: rgb(217, 126, 248);
/* oklch */ color: oklch(73.7% 0.191 317.0);
Tailwind
colors: {
  custom: {
    50: '#e7a6fb',
    500: '#d97ef8',
    950: '#000000',
  },
}
SCSS
$custom: #d97ef8;
$custom-light: #e7a6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ef8",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 284.754,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73695,
    "c": 0.19093,
    "h": 317
  },
  "luminance": 0.36451
}

Semantic roles & 50–950 ramp

primary
#D97EF8
secondary
#DEF6D5
accent
#E6003A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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