#D97AEC#D97AEC

#D97AEC is a light, vivid purple. Relative luminance 0.347; OKLCH L 72.5% C 0.185 H 320.8°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#D97AEC
RGBrgb(217, 122, 236)
HSLhsl(290, 75%, 70%)
HSVhsv(290, 48%, 93%)
CMYKcmyk(8.1%, 48.3%, 0%, 7.5%)
CIE-LABlab(65.54, 54.08, -42.39)
CIE-LCHlch(65.54, 68.72, 321.91°)
OKLaboklab(72.53% 0.1434 -0.1172)
OKLCHoklch(72.53% 0.185 320.8)
XYZxyz(50.7133, 34.7289, 83.3726)
Luminance0.3473 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AEC #8DEC7A
analogous
#A07AEC #D97AEC #EC7AC6
triadic
#D97AEC #ECD97A #7AECD9
tetradic
#D97AEC #ECA07A #8DEC7A #7AC6EC
square
#D97AEC #ECA07A #8DEC7A #7AC6EC
split-complementary
#D97AEC #C6EC7A #7AECA0
monochromatic
#B11DCE #CA44E4 #D97AEC #E8B0F4 #F7E4FB

Accessibility & contrast

On white

2.64
#D97AEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#D97AEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AEC
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AEC#FFFFFF#000000##000000
##D97AEC1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898F0
Deuteranopia (green-blind)
#84A3E9
Tritanopia (blue-blind)
#DB89A8
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d97aec;
/* rgb */ color: rgb(217, 122, 236);
/* oklch */ color: oklch(72.5% 0.185 320.8);
Tailwind
colors: {
  custom: {
    50: '#e7a3f2',
    500: '#d97aec',
    950: '#000000',
  },
}
SCSS
$custom: #d97aec;
$custom-light: #e7a3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d97aec",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 290,
    "s": 75,
    "l": 70.196
  },
  "oklch": {
    "l": 0.7253,
    "c": 0.18521,
    "h": 320.8
  },
  "luminance": 0.34727
}

Semantic roles & 50–950 ramp

primary
#D97AEC
secondary
#D6F1D1
accent
#D70E30
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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