#D97EF4#D97EF4

#D97EF4 is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.5% C 0.187 H 318.1°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#D97EF4
RGBrgb(217, 126, 244)
HSLhsl(286, 84%, 73%)
HSVhsv(286, 48%, 96%)
CMYKcmyk(11.1%, 48.4%, 0%, 4.3%)
CIE-LABlab(66.68, 53.62, -45.01)
CIE-LCHlch(66.68, 70.01, 319.99°)
OKLaboklab(73.5% 0.1391 -0.1248)
OKLCHoklch(73.5% 0.187 318.1)
XYZxyz(52.4030, 36.2069, 89.7986)
Luminance0.3620 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EF4 #99F47E
analogous
#9E7EF4 #D97EF4 #F47ED4
triadic
#D97EF4 #F4D97E #7EF4D9
tetradic
#D97EF4 #F49E7E #99F47E #7ED4F4
square
#D97EF4 #F49E7E #99F47E #7ED4F4
split-complementary
#D97EF4 #D4F47E #7EF49E
monochromatic
#B413E4 #C846EF #D97EF4 #EAB6F9 #F7E3FD

Accessibility & contrast

On white

2.55
#D97EF4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#D97EF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EF4
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EF4#FFFFFF#000000##000000
##D97EF41.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#699CF8
Deuteranopia (green-blind)
#83A5F1
Tritanopia (blue-blind)
#D98FAE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97ef4;
/* rgb */ color: rgb(217, 126, 244);
/* oklch */ color: oklch(73.5% 0.187 318.1);
Tailwind
colors: {
  custom: {
    50: '#e7a6f8',
    500: '#d97ef4',
    950: '#000000',
  },
}
SCSS
$custom: #d97ef4;
$custom-light: #e7a6f8;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ef4",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 244
  },
  "hsl": {
    "h": 286.271,
    "s": 84.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73496,
    "c": 0.18685,
    "h": 318.1
  },
  "luminance": 0.36205
}

Semantic roles & 50–950 ramp

primary
#D97EF4
secondary
#DDF5D6
accent
#E10537
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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