#D97ECA#D97ECA

#D97ECA is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.6% C 0.147 H 333.3°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#D97ECA
RGBrgb(217, 126, 202)
HSLhsl(310, 54%, 67%)
HSVhsv(310, 42%, 85%)
CMYKcmyk(0%, 41.9%, 6.9%, 14.9%)
CIE-LABlab(64.92, 45.88, -24.42)
CIE-LCHlch(64.92, 51.97, 331.97°)
OKLaboklab(71.6% 0.1312 -0.066)
OKLCHoklch(71.6% 0.147 333.3)
XYZxyz(46.7365, 33.9403, 59.9551)
Luminance0.3394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97ECA #7ED98D
analogous
#BB7ED9 #D97ECA #D97E9D
triadic
#D97ECA #CAD97E #7ECAD9
tetradic
#D97ECA #D9BB7E #7ED98D #7E9DD9
square
#D97ECA #D9BB7E #7ED98D #7E9DD9
split-complementary
#D97ECA #9DD97E #7ED9BB
monochromatic
#AA3297 #CB4FB7 #D97ECA #E7ADDD #F5DDF1

Accessibility & contrast

On white

2.70
#D97ECA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#D97ECA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97ECA
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97ECA#FFFFFF#000000##000000
##D97ECA1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D95CD
Deuteranopia (green-blind)
#95A2C7
Tritanopia (blue-blind)
#E1839B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d97eca;
/* rgb */ color: rgb(217, 126, 202);
/* oklch */ color: oklch(71.6% 0.147 333.3);
Tailwind
colors: {
  custom: {
    50: '#e6a5da',
    500: '#d97eca',
    950: '#000000',
  },
}
SCSS
$custom: #d97eca;
$custom-light: #e6a5da;
$custom-dark: #000000;
JSON
{
  "hex": "#d97eca",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 309.89,
    "s": 54.491,
    "l": 67.255
  },
  "oklch": {
    "l": 0.71603,
    "c": 0.14688,
    "h": 333.3
  },
  "luminance": 0.33938
}

Semantic roles & 50–950 ramp

primary
#D97ECA
secondary
#CBE8D0
accent
#C23E24
background
#FEFAFD
surface
#FDF4FA
border
#D5CED3
text
#160F14
muted
#847F83

Preview Lab

Preview with #D97ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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