#D97EFD#D97EFD

#D97EFD is a light, vivid purple. Relative luminance 0.368; OKLCH L 73.9% C 0.196 H 315.6°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#D97EFD
RGBrgb(217, 126, 253)
HSLhsl(283, 97%, 74%)
HSVhsv(283, 50%, 99%)
CMYKcmyk(14.2%, 50.2%, 0%, 0.8%)
CIE-LABlab(67.10, 55.41, -49.28)
CIE-LCHlch(67.10, 74.16, 318.35°)
OKLaboklab(73.95% 0.1402 -0.1371)
OKLCHoklch(73.95% 0.196 315.6)
XYZxyz(53.8030, 36.7669, 97.1720)
Luminance0.3676 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EFD #A2FD7E
analogous
#9A7EFD #D97EFD #FD7EE2
triadic
#D97EFD #FDD97E #7EFDD9
tetradic
#D97EFD #FD9A7E #A2FD7E #7EE2FD
square
#D97EFD #FD9A7E #A2FD7E #7EE2FD
split-complementary
#D97EFD #E2FD7E #7EFD9A
monochromatic
#B505FB #C742FC #D97EFD #EBBAFE #F6E1FF

Accessibility & contrast

On white

2.51
#D97EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#D97EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EFD
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EFD#FFFFFF#000000##000000
##D97EFD1.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#639EFF
Deuteranopia (green-blind)
#7FA6FA
Tritanopia (blue-blind)
#D791B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97efd;
/* rgb */ color: rgb(217, 126, 253);
/* oklch */ color: oklch(73.9% 0.196 315.6);
Tailwind
colors: {
  custom: {
    50: '#e7a6fe',
    500: '#d97efd',
    950: '#000000',
  },
}
SCSS
$custom: #d97efd;
$custom-light: #e7a6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97efd",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 282.992,
    "s": 96.947,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73948,
    "c": 0.19608,
    "h": 315.6
  },
  "luminance": 0.36765
}

Semantic roles & 50–950 ramp

primary
#D97EFD
secondary
#DEF7D4
accent
#E60041
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D97EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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