#D97DFE#D97DFE

#D97DFE is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.9% C 0.199 H 315.4°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#D97DFE
RGBrgb(217, 125, 254)
HSLhsl(283, 98%, 74%)
HSVhsv(283, 51%, 100%)
CMYKcmyk(14.6%, 50.8%, 0%, 0.4%)
CIE-LABlab(66.96, 56.12, -50.05)
CIE-LCHlch(66.96, 75.20, 318.27°)
OKLaboklab(73.86% 0.1416 -0.1394)
OKLCHoklch(73.86% 0.199 315.4)
XYZxyz(53.8355, 36.5763, 97.9707)
Luminance0.3658 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DFE #A2FE7D
analogous
#997DFE #D97DFE #FE7DE2
triadic
#D97DFE #FED97D #7DFED9
tetradic
#D97DFE #FE997D #A2FE7D #7DE2FE
square
#D97DFE #FE997D #A2FE7D #7DE2FE
split-complementary
#D97DFE #E2FE7D #7DFE99
monochromatic
#B504FD #C740FE #D97DFE #EBBAFE #F6E1FF

Accessibility & contrast

On white

2.53
#D97DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#D97DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DFE
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DFE#FFFFFF#000000##000000
##D97DFE1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#619DFF
Deuteranopia (green-blind)
#7DA6FB
Tritanopia (blue-blind)
#D791B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97dfe;
/* rgb */ color: rgb(217, 125, 254);
/* oklch */ color: oklch(73.9% 0.199 315.4);
Tailwind
colors: {
  custom: {
    50: '#e7a5ff',
    500: '#d97dfe',
    950: '#000000',
  },
}
SCSS
$custom: #d97dfe;
$custom-light: #e7a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97dfe",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 282.791,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73857,
    "c": 0.19866,
    "h": 315.4
  },
  "luminance": 0.36575
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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