#D97FF4#D97FF4

#D97FF4 is a light, vivid purple. Relative luminance 0.365; OKLCH L 73.6% C 0.185 H 318.0°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#D97FF4
RGBrgb(217, 127, 244)
HSLhsl(286, 84%, 73%)
HSVhsv(286, 48%, 96%)
CMYKcmyk(11.1%, 48%, 0%, 4.3%)
CIE-LABlab(66.87, 53.12, -44.70)
CIE-LCHlch(66.87, 69.42, 319.92°)
OKLaboklab(73.64% 0.1377 -0.1239)
OKLCHoklch(73.64% 0.185 318)
XYZxyz(52.5315, 36.4639, 89.8415)
Luminance0.3646 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FF4 #9AF47F
analogous
#9E7FF4 #D97FF4 #F47FD4
triadic
#D97FF4 #F4D97F #7FF4D9
tetradic
#D97FF4 #F49E7F #9AF47F #7FD4F4
square
#D97FF4 #F49E7F #9AF47F #7FD4F4
split-complementary
#D97FF4 #D4F47F #7FF49E
monochromatic
#B514E5 #C847EF #D97FF4 #EAB7F9 #F7E3FD

Accessibility & contrast

On white

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

On black

8.29
#D97FF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FF4
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FF4#FFFFFF#000000##000000
##D97FF41.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9DF8
Deuteranopia (green-blind)
#84A6F1
Tritanopia (blue-blind)
#D98FAE
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ff4;
/* rgb */ color: rgb(217, 127, 244);
/* oklch */ color: oklch(73.6% 0.185 318.0);
Tailwind
colors: {
  custom: {
    50: '#e7a7f8',
    500: '#d97ff4',
    950: '#000000',
  },
}
SCSS
$custom: #d97ff4;
$custom-light: #e7a7f8;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ff4",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 244
  },
  "hsl": {
    "h": 286.154,
    "s": 84.173,
    "l": 72.745
  },
  "oklch": {
    "l": 0.7364,
    "c": 0.18525,
    "h": 318
  },
  "luminance": 0.36462
}

Semantic roles & 50–950 ramp

primary
#D97FF4
secondary
#DDF5D6
accent
#E10538
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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