#D97FEF#D97FEF

#D97FEF is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.4% C 0.180 H 319.5°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#D97FEF
RGBrgb(217, 127, 239)
HSLhsl(288, 78%, 72%)
HSVhsv(288, 47%, 94%)
CMYKcmyk(9.2%, 46.9%, 0%, 6.3%)
CIE-LABlab(66.65, 52.14, -42.31)
CIE-LCHlch(66.65, 67.14, 320.94°)
OKLaboklab(73.4% 0.137 -0.117)
OKLCHoklch(73.4% 0.18 319.5)
XYZxyz(51.7826, 36.1643, 85.8973)
Luminance0.3616 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FEF #95EF7F
analogous
#A17FEF #D97FEF #EF7FCD
triadic
#D97FEF #EFD97F #7FEFD9
tetradic
#D97FEF #EFA17F #95EF7F #7FCDEF
square
#D97FEF #EFA17F #95EF7F #7FCDEF
split-complementary
#D97FEF #CDEF7F #7FEFA1
monochromatic
#B31BD9 #C949E8 #D97FEF #E9B5F6 #F7E4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D97FEF#FFFFFF#000000##000000
##D97FEF1.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)
#6D9CF3
Deuteranopia (green-blind)
#87A5EC
Tritanopia (blue-blind)
#DA8EAC
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97fef;
/* rgb */ color: rgb(217, 127, 239);
/* oklch */ color: oklch(73.4% 0.180 319.5);
Tailwind
colors: {
  custom: {
    50: '#e7a7f4',
    500: '#d97fef',
    950: '#000000',
  },
}
SCSS
$custom: #d97fef;
$custom-light: #e7a7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fef",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 288.214,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.73397,
    "c": 0.18016,
    "h": 319.5
  },
  "luminance": 0.36162
}

Semantic roles & 50–950 ramp

primary
#D97FEF
secondary
#DCF3D7
accent
#DA0B34
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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