#D97EF7#D97EF7

#D97EF7 is a light, vivid purple. Relative luminance 0.364; OKLCH L 73.6% C 0.190 H 317.3°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#D97EF7
RGBrgb(217, 126, 247)
HSLhsl(285, 88%, 73%)
HSVhsv(285, 49%, 97%)
CMYKcmyk(12.1%, 49%, 0%, 3.1%)
CIE-LABlab(66.82, 54.22, -46.44)
CIE-LCHlch(66.82, 71.38, 319.42°)
OKLaboklab(73.65% 0.1395 -0.1289)
OKLCHoklch(73.65% 0.19 317.3)
XYZxyz(52.8622, 36.3906, 92.2171)
Luminance0.3639 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EF7 #9CF77E
analogous
#9C7EF7 #D97EF7 #F77ED8
triadic
#D97EF7 #F7D97E #7EF7D9
tetradic
#D97EF7 #F79C7E #9CF77E #7ED8F7
square
#D97EF7 #F79C7E #9CF77E #7ED8F7
split-complementary
#D97EF7 #D8F77E #7EF79C
monochromatic
#B50FEC #C844F3 #D97EF7 #EAB8FB #F7E2FD

Accessibility & contrast

On white

2.54
#D97EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#D97EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EF7
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EF7#FFFFFF#000000##000000
##D97EF71.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#679DFB
Deuteranopia (green-blind)
#82A5F4
Tritanopia (blue-blind)
#D890AF
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ef7;
/* rgb */ color: rgb(217, 126, 247);
/* oklch */ color: oklch(73.6% 0.190 317.3);
Tailwind
colors: {
  custom: {
    50: '#e7a6fa',
    500: '#d97ef7',
    950: '#000000',
  },
}
SCSS
$custom: #d97ef7;
$custom-light: #e7a6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ef7",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 285.124,
    "s": 88.321,
    "l": 73.137
  },
  "oklch": {
    "l": 0.73645,
    "c": 0.18991,
    "h": 317.3
  },
  "luminance": 0.36389
}

Semantic roles & 50–950 ramp

primary
#D97EF7
secondary
#DEF5D6
accent
#E50139
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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