#D97CF5#D97CF5

#D97CF5 is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.3% C 0.191 H 318.0°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#D97CF5
RGBrgb(217, 124, 245)
HSLhsl(286, 86%, 72%)
HSVhsv(286, 49%, 96%)
CMYKcmyk(11.4%, 49.4%, 0%, 3.9%)
CIE-LABlab(66.34, 54.83, -46.09)
CIE-LCHlch(66.34, 71.63, 319.95°)
OKLaboklab(73.26% 0.1419 -0.1279)
OKLCHoklch(73.26% 0.191 318)
XYZxyz(52.3021, 35.7614, 90.5161)
Luminance0.3576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97CF5 #98F57C
analogous
#9D7CF5 #D97CF5 #F57CD4
triadic
#D97CF5 #F5D97C #7CF5D9
tetradic
#D97CF5 #F59D7C #98F57C #7CD4F5
square
#D97CF5 #F59D7C #98F57C #7CD4F5
split-complementary
#D97CF5 #D4F57C #7CF59D
monochromatic
#B411E5 #C943F1 #D97CF5 #E9B5F9 #F7E3FD

Accessibility & contrast

On white

2.58
#D97CF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#D97CF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97CF5
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97CF5#FFFFFF#000000##000000
##D97CF51.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#659BF9
Deuteranopia (green-blind)
#81A4F2
Tritanopia (blue-blind)
#D98DAD
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97cf5;
/* rgb */ color: rgb(217, 124, 245);
/* oklch */ color: oklch(73.3% 0.191 318.0);
Tailwind
colors: {
  custom: {
    50: '#e7a5f9',
    500: '#d97cf5',
    950: '#000000',
  },
}
SCSS
$custom: #d97cf5;
$custom-light: #e7a5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d97cf5",
  "rgb": {
    "r": 217,
    "g": 124,
    "b": 245
  },
  "hsl": {
    "h": 286.116,
    "s": 85.816,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73259,
    "c": 0.19103,
    "h": 318
  },
  "luminance": 0.3576
}

Semantic roles & 50–950 ramp

primary
#D97CF5
secondary
#DDF5D6
accent
#E20337
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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