#D97ECF#D97ECF

#D97ECF is a light, vivid purple. Relative luminance 0.342; OKLCH L 71.8% C 0.151 H 331.1°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#D97ECF
RGBrgb(217, 126, 207)
HSLhsl(307, 54%, 67%)
HSVhsv(307, 42%, 85%)
CMYKcmyk(0%, 41.9%, 4.6%, 14.9%)
CIE-LABlab(65.11, 46.74, -26.93)
CIE-LCHlch(65.11, 53.94, 330.05°)
OKLaboklab(71.81% 0.1324 -0.073)
OKLCHoklch(71.81% 0.151 331.1)
XYZxyz(47.3381, 34.1809, 63.1235)
Luminance0.3418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97ECF #7ED988
analogous
#B57ED9 #D97ECF #D97EA2
triadic
#D97ECF #CFD97E #7ECFD9
tetradic
#D97ECF #D9B57E #7ED988 #7EA2D9
square
#D97ECF #D9B57E #7ED988 #7EA2D9
split-complementary
#D97ECF #A2D97E #7ED9B5
monochromatic
#AA329D #CB4FBD #D97ECF #E7ADE1 #F5DDF2

Accessibility & contrast

On white

2.68
#D97ECF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#D97ECF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97ECF
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97ECF#FFFFFF#000000##000000
##D97ECF1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B96D2
Deuteranopia (green-blind)
#93A3CC
Tritanopia (blue-blind)
#E0849D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d97ecf;
/* rgb */ color: rgb(217, 126, 207);
/* oklch */ color: oklch(71.8% 0.151 331.1);
Tailwind
colors: {
  custom: {
    50: '#e6a5de',
    500: '#d97ecf',
    950: '#000000',
  },
}
SCSS
$custom: #d97ecf;
$custom-light: #e6a5de;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ecf",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 207
  },
  "hsl": {
    "h": 306.593,
    "s": 54.491,
    "l": 67.255
  },
  "oklch": {
    "l": 0.71809,
    "c": 0.15122,
    "h": 331.1
  },
  "luminance": 0.34178
}

Semantic roles & 50–950 ramp

primary
#D97ECF
secondary
#CBE8CE
accent
#C23524
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#160F15
muted
#847F83

Preview Lab

Preview with #D97ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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