#D97CFE#D97CFE

#D97CFE is a light, highly saturated purple. Relative luminance 0.363; OKLCH L 73.7% C 0.200 H 315.5°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#D97CFE
RGBrgb(217, 124, 254)
HSLhsl(283, 98%, 74%)
HSVhsv(283, 51%, 100%)
CMYKcmyk(14.6%, 51.2%, 0%, 0.4%)
CIE-LABlab(66.77, 56.62, -50.35)
CIE-LCHlch(66.77, 75.77, 318.35°)
OKLaboklab(73.72% 0.1429 -0.1402)
OKLCHoklch(73.72% 0.2 315.5)
XYZxyz(53.7096, 36.3244, 97.9288)
Luminance0.3632 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97CFE #A1FE7C
analogous
#987CFE #D97CFE #FE7CE2
triadic
#D97CFE #FED97C #7CFED9
tetradic
#D97CFE #FE987C #A1FE7C #7CE2FE
square
#D97CFE #FE987C #A1FE7C #7CE2FE
split-complementary
#D97CFE #E2FE7C #7CFE98
monochromatic
#B603FD #C73FFE #D97CFE #EBB9FE #F6E1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D97CFE#FFFFFF#000000##000000
##D97CFE1.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)
#5F9DFF
Deuteranopia (green-blind)
#7CA5FB
Tritanopia (blue-blind)
#D790B2
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97cfe;
/* rgb */ color: rgb(217, 124, 254);
/* oklch */ color: oklch(73.7% 0.200 315.5);
Tailwind
colors: {
  custom: {
    50: '#e7a5ff',
    500: '#d97cfe',
    950: '#000000',
  },
}
SCSS
$custom: #d97cfe;
$custom-light: #e7a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97cfe",
  "rgb": {
    "r": 217,
    "g": 124,
    "b": 254
  },
  "hsl": {
    "h": 282.923,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73716,
    "c": 0.2002,
    "h": 315.5
  },
  "luminance": 0.36323
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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