#D97DFC#D97DFC

#D97DFC is a light, vivid purple. Relative luminance 0.364; OKLCH L 73.8% C 0.197 H 316.0°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#D97DFC
RGBrgb(217, 125, 252)
HSLhsl(283, 95%, 74%)
HSVhsv(283, 50%, 99%)
CMYKcmyk(13.9%, 50.4%, 0%, 1.2%)
CIE-LABlab(66.86, 55.72, -49.11)
CIE-LCHlch(66.86, 74.27, 318.61°)
OKLaboklab(73.76% 0.1414 -0.1366)
OKLCHoklch(73.76% 0.197 316)
XYZxyz(53.5169, 36.4489, 96.2928)
Luminance0.3645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DFC #A0FC7D
analogous
#9A7DFC #D97DFC #FC7DDF
triadic
#D97DFC #FCD97D #7DFCD9
tetradic
#D97DFC #FC9A7D #A0FC7D #7DDFFC
square
#D97DFC #FC9A7D #A0FC7D #7DDFFC
split-complementary
#D97DFC #DFFC7D #7DFC9A
monochromatic
#B606F9 #C841FB #D97DFC #EAB9FD #F6E1FE

Accessibility & contrast

On white

2.53
#D97DFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#D97DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DFC
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DFC#FFFFFF#000000##000000
##D97DFC1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#629DFF
Deuteranopia (green-blind)
#7EA5F9
Tritanopia (blue-blind)
#D790B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97dfc;
/* rgb */ color: rgb(217, 125, 252);
/* oklch */ color: oklch(73.8% 0.197 316.0);
Tailwind
colors: {
  custom: {
    50: '#e7a5fe',
    500: '#d97dfc',
    950: '#000000',
  },
}
SCSS
$custom: #d97dfc;
$custom-light: #e7a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97dfc",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 252
  },
  "hsl": {
    "h": 283.465,
    "s": 95.489,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73755,
    "c": 0.1966,
    "h": 316
  },
  "luminance": 0.36447
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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