#D97FA2#D97FA2

#D97FA2 is a light, moderate pink. Relative luminance 0.325; OKLCH L 70.3% C 0.118 H 355.8°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#D97FA2
RGBrgb(217, 127, 162)
HSLhsl(337, 54%, 67%)
HSVhsv(337, 41%, 85%)
CMYKcmyk(0%, 41.5%, 25.3%, 14.9%)
CIE-LABlab(63.79, 39.11, -3.50)
CIE-LCHlch(63.79, 39.26, 354.89°)
OKLaboklab(70.31% 0.1178 -0.0087)
OKLCHoklch(70.31% 0.118 355.8)
XYZxyz(42.7274, 32.5422, 38.2063)
Luminance0.3254 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FA2 #7FD9B6
analogous
#D97FCF #D97FA2 #D9897F
triadic
#D97FA2 #A2D97F #7FA2D9
tetradic
#D97FA2 #CFD97F #7FD9B6 #897FD9
square
#D97FA2 #CFD97F #7FD9B6 #897FD9
split-complementary
#D97FA2 #7FD989 #7FCFD9
monochromatic
#AB3361 #CB5080 #D97FA2 #E7AEC4 #F5DDE7

Accessibility & contrast

On white

2.80
#D97FA2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#D97FA2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FA2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FA2#FFFFFF#000000##000000
##D97FA21.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A91A3
Deuteranopia (green-blind)
#A1A1A0
Tritanopia (blue-blind)
#E67B8B
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d97fa2;
/* rgb */ color: rgb(217, 127, 162);
/* oklch */ color: oklch(70.3% 0.118 355.8);
Tailwind
colors: {
  custom: {
    50: '#e7a6bd',
    500: '#d97fa2',
    950: '#000000',
  },
}
SCSS
$custom: #d97fa2;
$custom-light: #e7a6bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fa2",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 336.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.70314,
    "c": 0.11816,
    "h": 355.8
  },
  "luminance": 0.32539
}

Semantic roles & 50–950 ramp

primary
#D97FA2
secondary
#CCE8DD
accent
#C28424
background
#FEFAFB
surface
#FDF4F6
border
#D5CED0
text
#160F12
muted
#847F81

Preview Lab

Preview with #D97FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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