#D172A2#D172A2

#D172A2 is a light, vivid pink. Relative luminance 0.282; OKLCH L 67.3% C 0.131 H 349.6°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#D172A2
RGBrgb(209, 114, 162)
HSLhsl(330, 51%, 63%)
HSVhsv(330, 45%, 82%)
CMYKcmyk(0%, 45.5%, 22.5%, 18%)
CIE-LABlab(60.07, 43.13, -9.13)
CIE-LCHlch(60.07, 44.08, 348.05°)
OKLaboklab(67.29% 0.1293 -0.0237)
OKLCHoklch(67.29% 0.131 349.6)
XYZxyz(38.8343, 28.2015, 37.5735)
Luminance0.2820 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172A2 #72D1A1
analogous
#D072D1 #D172A2 #D17272
triadic
#D172A2 #A2D172 #72A2D1
tetradic
#D172A2 #D1D072 #72D1A1 #7272D1
square
#D172A2 #D1D072 #72D1A1 #7272D1
split-complementary
#D172A2 #72D172 #72D1D0
monochromatic
#973165 #C24484 #D172A2 #E0A0C0 #EFCEDF

Accessibility & contrast

On white

3.16
#D172A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#D172A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D172A2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172A2#FFFFFF#000000##000000
##D172A21.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C87A4
Deuteranopia (green-blind)
#9497A0
Tritanopia (blue-blind)
#DD6F84
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #d172a2;
/* rgb */ color: rgb(209, 114, 162);
/* oklch */ color: oklch(67.3% 0.131 349.6);
Tailwind
colors: {
  custom: {
    50: '#e19dbd',
    500: '#d172a2',
    950: '#000000',
  },
}
SCSS
$custom: #d172a2;
$custom-light: #e19dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#d172a2",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 162
  },
  "hsl": {
    "h": 329.684,
    "s": 50.802,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67286,
    "c": 0.13145,
    "h": 349.6
  },
  "luminance": 0.28199
}

Semantic roles & 50–950 ramp

primary
#D172A2
secondary
#BEE0CF
accent
#BE7227
background
#FEF9FB
surface
#FCF2F6
border
#D5CCD0
text
#160E12
muted
#847E81

Preview Lab

Preview with #D172A2

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

Preview Lab → · Contrast checker → · Palette generator →

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