#D97ECB#D97ECB

#D97ECB is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.6% C 0.148 H 332.9°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#D97ECB
RGBrgb(217, 126, 203)
HSLhsl(309, 54%, 67%)
HSVhsv(309, 42%, 85%)
CMYKcmyk(0%, 41.9%, 6.5%, 14.9%)
CIE-LABlab(64.95, 46.05, -24.92)
CIE-LCHlch(64.95, 52.36, 331.58°)
OKLaboklab(71.64% 0.1315 -0.0674)
OKLCHoklch(71.64% 0.148 332.9)
XYZxyz(46.8553, 33.9878, 60.5806)
Luminance0.3398 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97ECB #7ED98C
analogous
#BA7ED9 #D97ECB #D97E9D
triadic
#D97ECB #CBD97E #7ECBD9
tetradic
#D97ECB #D9BA7E #7ED98C #7E9DD9
square
#D97ECB #D9BA7E #7ED98C #7E9DD9
split-complementary
#D97ECB #9DD97E #7ED9BA
monochromatic
#AA3298 #CB4FB8 #D97ECB #E7ADDE #F5DDF1

Accessibility & contrast

On white

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

On black

7.80
#D97ECB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97ECB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97ECB#FFFFFF#000000##000000
##D97ECB1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C95CE
Deuteranopia (green-blind)
#94A2C8
Tritanopia (blue-blind)
#E0839B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d97ecb;
/* rgb */ color: rgb(217, 126, 203);
/* oklch */ color: oklch(71.6% 0.148 332.9);
Tailwind
colors: {
  custom: {
    50: '#e6a5db',
    500: '#d97ecb',
    950: '#000000',
  },
}
SCSS
$custom: #d97ecb;
$custom-light: #e6a5db;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ecb",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 309.231,
    "s": 54.491,
    "l": 67.255
  },
  "oklch": {
    "l": 0.71644,
    "c": 0.14773,
    "h": 332.9
  },
  "luminance": 0.33985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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