#D97EF0#D97EF0

#D97EF0 is a light, vivid purple. Relative luminance 0.360; OKLCH L 73.3% C 0.183 H 319.3°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#D97EF0
RGBrgb(217, 126, 240)
HSLhsl(288, 79%, 72%)
HSVhsv(288, 48%, 94%)
CMYKcmyk(9.6%, 47.5%, 0%, 5.9%)
CIE-LABlab(66.49, 52.84, -43.10)
CIE-LCHlch(66.49, 68.19, 320.80°)
OKLaboklab(73.3% 0.1385 -0.1192)
OKLCHoklch(73.3% 0.183 319.3)
XYZxyz(51.8023, 35.9666, 86.6347)
Luminance0.3597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EF0 #95F07E
analogous
#A07EF0 #D97EF0 #F07ECE
triadic
#D97EF0 #F0D97E #7EF0D9
tetradic
#D97EF0 #F0A07E #95F07E #7ECEF0
square
#D97EF0 #F0A07E #95F07E #7ECEF0
split-complementary
#D97EF0 #CEF07E #7EF0A0
monochromatic
#B319DA #C947EA #D97EF0 #E9B5F6 #F7E4FC

Accessibility & contrast

On white

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

On black

8.19
#D97EF0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EF0
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EF0#FFFFFF#000000##000000
##D97EF01.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF4
Deuteranopia (green-blind)
#85A5ED
Tritanopia (blue-blind)
#DA8DAC
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97ef0;
/* rgb */ color: rgb(217, 126, 240);
/* oklch */ color: oklch(73.3% 0.183 319.3);
Tailwind
colors: {
  custom: {
    50: '#e7a6f5',
    500: '#d97ef0',
    950: '#000000',
  },
}
SCSS
$custom: #d97ef0;
$custom-light: #e7a6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ef0",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 240
  },
  "hsl": {
    "h": 287.895,
    "s": 79.167,
    "l": 71.765
  },
  "oklch": {
    "l": 0.733,
    "c": 0.18279,
    "h": 319.3
  },
  "luminance": 0.35965
}

Semantic roles & 50–950 ramp

primary
#D97EF0
secondary
#DCF3D6
accent
#DB0A34
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EF0

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

Preview Lab → · Contrast checker → · Palette generator →

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