#D97EF3#D97EF3

#D97EF3 is a light, vivid purple. Relative luminance 0.361; OKLCH L 73.4% C 0.186 H 318.4°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#D97EF3
RGBrgb(217, 126, 243)
HSLhsl(287, 83%, 72%)
HSVhsv(287, 48%, 95%)
CMYKcmyk(10.7%, 48.1%, 0%, 4.7%)
CIE-LABlab(66.63, 53.43, -44.53)
CIE-LCHlch(66.63, 69.55, 320.19°)
OKLaboklab(73.45% 0.139 -0.1234)
OKLCHoklch(73.45% 0.186 318.4)
XYZxyz(52.2516, 36.1463, 89.0012)
Luminance0.3614 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EF3 #98F37E
analogous
#9F7EF3 #D97EF3 #F37ED2
triadic
#D97EF3 #F3D97E #7EF3D9
tetradic
#D97EF3 #F39F7E #98F37E #7ED2F3
square
#D97EF3 #F39F7E #98F37E #7ED2F3
split-complementary
#D97EF3 #D2F37E #7EF39F
monochromatic
#B415E2 #C946EE #D97EF3 #E9B6F8 #F7E3FC

Accessibility & contrast

On white

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

On black

8.23
#D97EF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EF3
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EF3#FFFFFF#000000##000000
##D97EF31.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#699CF7
Deuteranopia (green-blind)
#84A5F0
Tritanopia (blue-blind)
#D98EAD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97ef3;
/* rgb */ color: rgb(217, 126, 243);
/* oklch */ color: oklch(73.4% 0.186 318.4);
Tailwind
colors: {
  custom: {
    50: '#e7a6f7',
    500: '#d97ef3',
    950: '#000000',
  },
}
SCSS
$custom: #d97ef3;
$custom-light: #e7a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ef3",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 243
  },
  "hsl": {
    "h": 286.667,
    "s": 82.979,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73446,
    "c": 0.18583,
    "h": 318.4
  },
  "luminance": 0.36144
}

Semantic roles & 50–950 ramp

primary
#D97EF3
secondary
#DDF4D7
accent
#DF0636
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EF3

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

Preview Lab → · Contrast checker → · Palette generator →

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