#D97FFF#D97FFF

#D97FFF is a light, vivid purple. Relative luminance 0.371; OKLCH L 74.2% C 0.197 H 315.0°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#D97FFF
RGBrgb(217, 127, 255)
HSLhsl(282, 100%, 75%)
HSVhsv(282, 50%, 100%)
CMYKcmyk(14.9%, 50.2%, 0%, 0%)
CIE-LABlab(67.39, 55.31, -49.91)
CIE-LCHlch(67.39, 74.51, 317.94°)
OKLaboklab(74.19% 0.139 -0.139)
OKLCHoklch(74.19% 0.197 315)
XYZxyz(54.2518, 37.1520, 98.9016)
Luminance0.3715 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FFF #A5FF7F
analogous
#997FFF #D97FFF #FF7FE5
triadic
#D97FFF #FFD97F #7FFFD9
tetradic
#D97FFF #FF997F #A5FF7F #7FE5FF
square
#D97FFF #FF997F #A5FF7F #7FE5FF
split-complementary
#D97FFF #E5FF7F #7FFF99
monochromatic
#B505FF #C742FF #D97FFF #EBBCFF #F6E0FF

Accessibility & contrast

On white

2.49
#D97FFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#D97FFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FFF
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FFF#FFFFFF#000000##000000
##D97FFF1.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#639FFF
Deuteranopia (green-blind)
#7EA7FC
Tritanopia (blue-blind)
#D793B4
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d97fff;
/* rgb */ color: rgb(217, 127, 255);
/* oklch */ color: oklch(74.2% 0.197 315.0);
Tailwind
colors: {
  custom: {
    50: '#e7a7ff',
    500: '#d97fff',
    950: '#000000',
  },
}
SCSS
$custom: #d97fff;
$custom-light: #e7a7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fff",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 255
  },
  "hsl": {
    "h": 282.188,
    "s": 100,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74193,
    "c": 0.19659,
    "h": 315
  },
  "luminance": 0.3715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97FFF

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

Preview Lab → · Contrast checker → · Palette generator →

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