#D97CF2#D97CF2

#D97CF2 is a light, vivid purple. Relative luminance 0.356; OKLCH L 73.1% C 0.188 H 318.8°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#D97CF2
RGBrgb(217, 124, 242)
HSLhsl(287, 82%, 72%)
HSVhsv(287, 49%, 95%)
CMYKcmyk(10.3%, 48.8%, 0%, 5.1%)
CIE-LABlab(66.20, 54.24, -44.66)
CIE-LCHlch(66.20, 70.26, 320.53°)
OKLaboklab(73.11% 0.1415 -0.1237)
OKLCHoklch(73.11% 0.188 318.8)
XYZxyz(51.8478, 35.5797, 88.1236)
Luminance0.3558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97CF2 #95F27C
analogous
#9E7CF2 #D97CF2 #F27CD0
triadic
#D97CF2 #F2D97C #7CF2D9
tetradic
#D97CF2 #F29E7C #95F27C #7CD0F2
square
#D97CF2 #F29E7C #95F27C #7CD0F2
split-complementary
#D97CF2 #D0F27C #7CF29E
monochromatic
#B316DE #C944EC #D97CF2 #E9B4F8 #F7E3FC

Accessibility & contrast

On white

2.59
#D97CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#D97CF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97CF2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97CF2#FFFFFF#000000##000000
##D97CF21.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#679BF6
Deuteranopia (green-blind)
#83A4EF
Tritanopia (blue-blind)
#D98CAC
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97cf2;
/* rgb */ color: rgb(217, 124, 242);
/* oklch */ color: oklch(73.1% 0.188 318.8);
Tailwind
colors: {
  custom: {
    50: '#e7a5f7',
    500: '#d97cf2',
    950: '#000000',
  },
}
SCSS
$custom: #d97cf2;
$custom-light: #e7a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97cf2",
  "rgb": {
    "r": 217,
    "g": 124,
    "b": 242
  },
  "hsl": {
    "h": 287.288,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.73109,
    "c": 0.188,
    "h": 318.8
  },
  "luminance": 0.35578
}

Semantic roles & 50–950 ramp

primary
#D97CF2
secondary
#DCF4D6
accent
#DE0735
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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