#D97DFF#D97DFF

#D97DFF is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.9% C 0.200 H 315.2°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#D97DFF
RGBrgb(217, 125, 255)
HSLhsl(282, 100%, 75%)
HSVhsv(282, 51%, 100%)
CMYKcmyk(14.9%, 51%, 0%, 0%)
CIE-LABlab(67.01, 56.32, -50.52)
CIE-LCHlch(67.01, 75.66, 318.11°)
OKLaboklab(73.91% 0.1417 -0.1407)
OKLCHoklch(73.91% 0.2 315.2)
XYZxyz(53.9961, 36.6405, 98.8163)
Luminance0.3664 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DFF #A3FF7D
analogous
#987DFF #D97DFF #FF7DE4
triadic
#D97DFF #FFD97D #7DFFD9
tetradic
#D97DFF #FF987D #A3FF7D #7DE4FF
square
#D97DFF #FF987D #A3FF7D #7DE4FF
split-complementary
#D97DFF #E4FF7D #7DFF98
monochromatic
#B503FF #C740FF #D97DFF #EBBAFF #F6E0FF

Accessibility & contrast

On white

2.52
#D97DFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#D97DFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DFF
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DFF#FFFFFF#000000##000000
##D97DFF1.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#609EFF
Deuteranopia (green-blind)
#7DA6FC
Tritanopia (blue-blind)
#D791B3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97dff;
/* rgb */ color: rgb(217, 125, 255);
/* oklch */ color: oklch(73.9% 0.200 315.2);
Tailwind
colors: {
  custom: {
    50: '#e7a5ff',
    500: '#d97dff',
    950: '#000000',
  },
}
SCSS
$custom: #d97dff;
$custom-light: #e7a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97dff",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 255
  },
  "hsl": {
    "h": 282.462,
    "s": 100,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73909,
    "c": 0.19969,
    "h": 315.2
  },
  "luminance": 0.36639
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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