#D97EF2#D97EF2

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

Color values

HEX#D97EF2
RGBrgb(217, 126, 242)
HSLhsl(287, 82%, 72%)
HSVhsv(287, 48%, 95%)
CMYKcmyk(10.3%, 47.9%, 0%, 5.1%)
CIE-LABlab(66.59, 53.23, -44.05)
CIE-LCHlch(66.59, 69.10, 320.39°)
OKLaboklab(73.4% 0.1388 -0.122)
OKLCHoklch(73.4% 0.185 318.7)
XYZxyz(52.1010, 36.0861, 88.2080)
Luminance0.3608 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EF2 #97F27E
analogous
#9F7EF2 #D97EF2 #F27ED1
triadic
#D97EF2 #F2D97E #7EF2D9
tetradic
#D97EF2 #F29F7E #97F27E #7ED1F2
square
#D97EF2 #F29F7E #97F27E #7ED1F2
split-complementary
#D97EF2 #D1F27E #7EF29F
monochromatic
#B416DF #C946EC #D97EF2 #E9B6F8 #F7E3FC

Accessibility & contrast

On white

2.56
#D97EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#D97EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EF2
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EF2#FFFFFF#000000##000000
##D97EF21.002.568.228.22
#FFFFFF2.561.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9CF6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#D98EAD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97ef2;
/* rgb */ color: rgb(217, 126, 242);
/* oklch */ color: oklch(73.4% 0.185 318.7);
Tailwind
colors: {
  custom: {
    50: '#e7a6f7',
    500: '#d97ef2',
    950: '#000000',
  },
}
SCSS
$custom: #d97ef2;
$custom-light: #e7a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ef2",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 287.069,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73397,
    "c": 0.18481,
    "h": 318.7
  },
  "luminance": 0.36084
}

Semantic roles & 50–950 ramp

primary
#D97EF2
secondary
#DDF4D7
accent
#DE0736
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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