#D97FF2#D97FF2

#D97FF2 is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.5% C 0.183 H 318.6°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#D97FF2
RGBrgb(217, 127, 242)
HSLhsl(287, 82%, 72%)
HSVhsv(287, 48%, 95%)
CMYKcmyk(10.3%, 47.5%, 0%, 5.1%)
CIE-LABlab(66.78, 52.72, -43.75)
CIE-LCHlch(66.78, 68.51, 320.32°)
OKLaboklab(73.54% 0.1375 -0.1211)
OKLCHoklch(73.54% 0.183 318.6)
XYZxyz(52.2295, 36.3431, 88.2508)
Luminance0.3634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FF2 #98F27F
analogous
#A07FF2 #D97FF2 #F27FD1
triadic
#D97FF2 #F2D97F #7FF2D9
tetradic
#D97FF2 #F2A07F #98F27F #7FD1F2
square
#D97FF2 #F2A07F #98F27F #7FD1F2
split-complementary
#D97FF2 #D1F27F #7FF2A0
monochromatic
#B417E0 #C947EC #D97FF2 #E9B7F8 #F7E3FC

Accessibility & contrast

On white

2.54
#D97FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#D97FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FF2
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FF2#FFFFFF#000000##000000
##D97FF21.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9CF6
Deuteranopia (green-blind)
#85A6EF
Tritanopia (blue-blind)
#D98FAD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97ff2;
/* rgb */ color: rgb(217, 127, 242);
/* oklch */ color: oklch(73.5% 0.183 318.6);
Tailwind
colors: {
  custom: {
    50: '#e7a7f7',
    500: '#d97ff2',
    950: '#000000',
  },
}
SCSS
$custom: #d97ff2;
$custom-light: #e7a7f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ff2",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 286.957,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73542,
    "c": 0.18321,
    "h": 318.6
  },
  "luminance": 0.36341
}

Semantic roles & 50–950 ramp

primary
#D97FF2
secondary
#DDF4D7
accent
#DE0836
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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