#D97ECC#D97ECC

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

Color values

HEX#D97ECC
RGBrgb(217, 126, 204)
HSLhsl(309, 54%, 67%)
HSVhsv(309, 42%, 85%)
CMYKcmyk(0%, 41.9%, 6%, 14.9%)
CIE-LABlab(64.99, 46.22, -25.42)
CIE-LCHlch(64.99, 52.75, 331.19°)
OKLaboklab(71.69% 0.1317 -0.0688)
OKLCHoklch(71.69% 0.149 332.4)
XYZxyz(46.9749, 34.0356, 61.2103)
Luminance0.3403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97ECC #7ED98B
analogous
#B87ED9 #D97ECC #D97E9F
triadic
#D97ECC #CCD97E #7ECCD9
tetradic
#D97ECC #D9B87E #7ED98B #7E9FD9
square
#D97ECC #D9B87E #7ED98B #7E9FD9
split-complementary
#D97ECC #9FD97E #7ED9B8
monochromatic
#AA3299 #CB4FB9 #D97ECC #E7ADDF #F5DDF1

Accessibility & contrast

On white

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

On black

7.81
#D97ECC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97ECC
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97ECC#FFFFFF#000000##000000
##D97ECC1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d97ecc;
/* rgb */ color: rgb(217, 126, 204);
/* oklch */ color: oklch(71.7% 0.149 332.4);
Tailwind
colors: {
  custom: {
    50: '#e6a5db',
    500: '#d97ecc',
    950: '#000000',
  },
}
SCSS
$custom: #d97ecc;
$custom-light: #e6a5db;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ecc",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 204
  },
  "hsl": {
    "h": 308.571,
    "s": 54.491,
    "l": 67.255
  },
  "oklch": {
    "l": 0.71685,
    "c": 0.1486,
    "h": 332.4
  },
  "luminance": 0.34033
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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