#D97DF7#D97DF7

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

Color values

HEX#D97DF7
RGBrgb(217, 125, 247)
HSLhsl(285, 88%, 73%)
HSVhsv(285, 49%, 97%)
CMYKcmyk(12.1%, 49.4%, 0%, 3.1%)
CIE-LABlab(66.62, 54.72, -46.74)
CIE-LCHlch(66.62, 71.97, 319.50°)
OKLaboklab(73.5% 0.1408 -0.1298)
OKLCHoklch(73.5% 0.191 317.3)
XYZxyz(52.7350, 36.1361, 92.1747)
Luminance0.3613 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DF7 #9BF77D
analogous
#9C7DF7 #D97DF7 #F77DD8
triadic
#D97DF7 #F7D97D #7DF7D9
tetradic
#D97DF7 #F79C7D #9BF77D #7DD8F7
square
#D97DF7 #F79C7D #9BF77D #7DD8F7
split-complementary
#D97DF7 #D8F77D #7DF79C
monochromatic
#B50EEB #C843F3 #D97DF7 #EAB7FB #F7E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D97DF7#FFFFFF#000000##000000
##D97DF71.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)
#659CFB
Deuteranopia (green-blind)
#81A5F4
Tritanopia (blue-blind)
#D88FAF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97df7;
/* rgb */ color: rgb(217, 125, 247);
/* oklch */ color: oklch(73.5% 0.191 317.3);
Tailwind
colors: {
  custom: {
    50: '#e7a5fa',
    500: '#d97df7',
    950: '#000000',
  },
}
SCSS
$custom: #d97df7;
$custom-light: #e7a5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d97df7",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 285.246,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.73501,
    "c": 0.19148,
    "h": 317.3
  },
  "luminance": 0.36134
}

Semantic roles & 50–950 ramp

primary
#D97DF7
secondary
#DDF5D6
accent
#E50039
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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