#D97ECD#D97ECD

#D97ECD is a light, vivid purple. Relative luminance 0.341; OKLCH L 71.7% C 0.149 H 332.0°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#D97ECD
RGBrgb(217, 126, 205)
HSLhsl(308, 54%, 67%)
HSVhsv(308, 42%, 85%)
CMYKcmyk(0%, 41.9%, 5.5%, 14.9%)
CIE-LABlab(65.03, 46.39, -25.93)
CIE-LCHlch(65.03, 53.14, 330.80°)
OKLaboklab(71.73% 0.1319 -0.0702)
OKLCHoklch(71.73% 0.149 332)
XYZxyz(47.0952, 34.0837, 61.8440)
Luminance0.3408 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97ECD #7ED98A
analogous
#B87ED9 #D97ECD #D97EA0
triadic
#D97ECD #CDD97E #7ECDD9
tetradic
#D97ECD #D9B87E #7ED98A #7EA0D9
square
#D97ECD #D9B87E #7ED98A #7EA0D9
split-complementary
#D97ECD #A0D97E #7ED9B8
monochromatic
#AA329B #CB4FBB #D97ECD #E7ADDF #F5DDF2

Accessibility & contrast

On white

2.69
#D97ECD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#D97ECD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97ECD
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97ECD#FFFFFF#000000##000000
##D97ECD1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C96D0
Deuteranopia (green-blind)
#94A2CA
Tritanopia (blue-blind)
#E0849C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d97ecd;
/* rgb */ color: rgb(217, 126, 205);
/* oklch */ color: oklch(71.7% 0.149 332.0);
Tailwind
colors: {
  custom: {
    50: '#e6a5dc',
    500: '#d97ecd',
    950: '#000000',
  },
}
SCSS
$custom: #d97ecd;
$custom-light: #e6a5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ecd",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 205
  },
  "hsl": {
    "h": 307.912,
    "s": 54.491,
    "l": 67.255
  },
  "oklch": {
    "l": 0.71726,
    "c": 0.14947,
    "h": 332
  },
  "luminance": 0.34081
}

Semantic roles & 50–950 ramp

primary
#D97ECD
secondary
#CBE8CF
accent
#C23824
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#160F15
muted
#847F83

Preview Lab

Preview with #D97ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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