#D97DF3#D97DF3

#D97DF3 is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.3% C 0.187 H 318.5°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#D97DF3
RGBrgb(217, 125, 243)
HSLhsl(287, 83%, 72%)
HSVhsv(287, 49%, 95%)
CMYKcmyk(10.7%, 48.6%, 0%, 4.7%)
CIE-LABlab(66.44, 53.93, -44.84)
CIE-LCHlch(66.44, 70.14, 320.26°)
OKLaboklab(73.3% 0.1403 -0.1243)
OKLCHoklch(73.3% 0.187 318.5)
XYZxyz(52.1244, 35.8918, 88.9587)
Luminance0.3589 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DF3 #97F37D
analogous
#9E7DF3 #D97DF3 #F37DD2
triadic
#D97DF3 #F3D97D #7DF3D9
tetradic
#D97DF3 #F39E7D #97F37D #7DD2F3
square
#D97DF3 #F39E7D #97F37D #7DD2F3
split-complementary
#D97DF3 #D2F37D #7DF39E
monochromatic
#B415E1 #C945EE #D97DF3 #E9B5F8 #F7E3FC

Accessibility & contrast

On white

2.57
#D97DF3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#D97DF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DF3
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DF3#FFFFFF#000000##000000
##D97DF31.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#689BF7
Deuteranopia (green-blind)
#83A5F0
Tritanopia (blue-blind)
#D98EAD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97df3;
/* rgb */ color: rgb(217, 125, 243);
/* oklch */ color: oklch(73.3% 0.187 318.5);
Tailwind
colors: {
  custom: {
    50: '#e7a5f7',
    500: '#d97df3',
    950: '#000000',
  },
}
SCSS
$custom: #d97df3;
$custom-light: #e7a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97df3",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 243
  },
  "hsl": {
    "h": 286.78,
    "s": 83.099,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73302,
    "c": 0.18742,
    "h": 318.5
  },
  "luminance": 0.3589
}

Semantic roles & 50–950 ramp

primary
#D97DF3
secondary
#DDF4D7
accent
#E00636
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97DF3

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

Preview Lab → · Contrast checker → · Palette generator →

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