#D97CFD#D97CFD

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

Color values

HEX#D97CFD
RGBrgb(217, 124, 253)
HSLhsl(283, 97%, 74%)
HSVhsv(283, 51%, 99%)
CMYKcmyk(14.2%, 51%, 0%, 0.8%)
CIE-LABlab(66.72, 56.42, -49.88)
CIE-LCHlch(66.72, 75.31, 318.52°)
OKLaboklab(73.67% 0.1428 -0.1389)
OKLCHoklch(73.67% 0.199 315.8)
XYZxyz(53.5498, 36.2605, 97.0876)
Luminance0.3626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97CFD #A0FD7C
analogous
#997CFD #D97CFD #FD7CE0
triadic
#D97CFD #FDD97C #7CFDD9
tetradic
#D97CFD #FD997C #A0FD7C #7CE0FD
square
#D97CFD #FD997C #A0FD7C #7CE0FD
split-complementary
#D97CFD #E0FD7C #7CFD99
monochromatic
#B604FB #C840FC #D97CFD #EAB8FE #F6E1FF

Accessibility & contrast

On white

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

On black

8.25
#D97CFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97CFD
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97CFD#FFFFFF#000000##000000
##D97CFD1.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#609DFF
Deuteranopia (green-blind)
#7DA5FA
Tritanopia (blue-blind)
#D790B1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97cfd;
/* rgb */ color: rgb(217, 124, 253);
/* oklch */ color: oklch(73.7% 0.199 315.8);
Tailwind
colors: {
  custom: {
    50: '#e7a5fe',
    500: '#d97cfd',
    950: '#000000',
  },
}
SCSS
$custom: #d97cfd;
$custom-light: #e7a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97cfd",
  "rgb": {
    "r": 217,
    "g": 124,
    "b": 253
  },
  "hsl": {
    "h": 283.256,
    "s": 96.992,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73665,
    "c": 0.19918,
    "h": 315.8
  },
  "luminance": 0.36259
}

Semantic roles & 50–950 ramp

primary
#D97CFD
secondary
#DEF7D4
accent
#E60040
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D97CFD

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

Preview Lab → · Contrast checker → · Palette generator →

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