#D97EC2#D97EC2

#D97EC2 is a light, vivid pink. Relative luminance 0.336; OKLCH L 71.3% C 0.140 H 337.1°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#D97EC2
RGBrgb(217, 126, 194)
HSLhsl(315, 54%, 67%)
HSVhsv(315, 42%, 85%)
CMYKcmyk(0%, 41.9%, 10.6%, 14.9%)
CIE-LABlab(64.62, 44.53, -20.37)
CIE-LCHlch(64.62, 48.97, 335.42°)
OKLaboklab(71.29% 0.1292 -0.0547)
OKLCHoklch(71.29% 0.14 337.1)
XYZxyz(45.8138, 33.5712, 55.0953)
Luminance0.3357 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EC2 #7ED995
analogous
#C37ED9 #D97EC2 #D97E95
triadic
#D97EC2 #C2D97E #7EC2D9
tetradic
#D97EC2 #D9C37E #7ED995 #7E95D9
square
#D97EC2 #D9C37E #7ED995 #7E95D9
split-complementary
#D97EC2 #95D97E #7ED9C3
monochromatic
#AA328C #CB4FAC #D97EC2 #E7ADD8 #F5DDEF

Accessibility & contrast

On white

2.72
#D97EC2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#D97EC2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EC2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EC2#FFFFFF#000000##000000
##D97EC21.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8094C4
Deuteranopia (green-blind)
#97A2BF
Tritanopia (blue-blind)
#E28197
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d97ec2;
/* rgb */ color: rgb(217, 126, 194);
/* oklch */ color: oklch(71.3% 0.140 337.1);
Tailwind
colors: {
  custom: {
    50: '#e6a5d4',
    500: '#d97ec2',
    950: '#000000',
  },
}
SCSS
$custom: #d97ec2;
$custom-light: #e6a5d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ec2",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 315.165,
    "s": 54.491,
    "l": 67.255
  },
  "oklch": {
    "l": 0.71285,
    "c": 0.14026,
    "h": 337.1
  },
  "luminance": 0.33568
}

Semantic roles & 50–950 ramp

primary
#D97EC2
secondary
#CBE8D2
accent
#C24C24
background
#FEFAFD
surface
#FDF4FA
border
#D5CED3
text
#160F14
muted
#847F83

Preview Lab

Preview with #D97EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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