#D97DFA#D97DFA

#D97DFA is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.7% C 0.195 H 316.5°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#D97DFA
RGBrgb(217, 125, 250)
HSLhsl(284, 93%, 74%)
HSVhsv(284, 50%, 98%)
CMYKcmyk(13.2%, 50%, 0%, 2%)
CIE-LABlab(66.77, 55.32, -48.16)
CIE-LCHlch(66.77, 73.35, 318.95°)
OKLaboklab(73.65% 0.1412 -0.1339)
OKLCHoklch(73.65% 0.195 316.5)
XYZxyz(53.2017, 36.3228, 94.6324)
Luminance0.3632 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DFA #9EFA7D
analogous
#9A7DFA #D97DFA #FA7DDC
triadic
#D97DFA #FAD97D #7DFAD9
tetradic
#D97DFA #FA9A7D #9EFA7D #7DDCFA
square
#D97DFA #FA9A7D #9EFA7D #7DDCFA
split-complementary
#D97DFA #DCFA7D #7DFA9A
monochromatic
#B509F3 #C842F8 #D97DFA #EAB8FC #F6E2FE

Accessibility & contrast

On white

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

On black

8.26
#D97DFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DFA
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DFA#FFFFFF#000000##000000
##D97DFA1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFE
Deuteranopia (green-blind)
#7FA5F7
Tritanopia (blue-blind)
#D890B0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97dfa;
/* rgb */ color: rgb(217, 125, 250);
/* oklch */ color: oklch(73.7% 0.195 316.5);
Tailwind
colors: {
  custom: {
    50: '#e7a5fc',
    500: '#d97dfa',
    950: '#000000',
  },
}
SCSS
$custom: #d97dfa;
$custom-light: #e7a5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97dfa",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 250
  },
  "hsl": {
    "h": 284.16,
    "s": 92.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73653,
    "c": 0.19455,
    "h": 316.5
  },
  "luminance": 0.36321
}

Semantic roles & 50–950 ramp

primary
#D97DFA
secondary
#DEF6D5
accent
#E6003D
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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