#D172CB#D172CB

#D172CB is a light, vivid purple. Relative luminance 0.299; OKLCH L 68.9% C 0.162 H 329.5°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#D172CB
RGBrgb(209, 114, 203)
HSLhsl(304, 51%, 63%)
HSVhsv(304, 45%, 82%)
CMYKcmyk(0%, 45.5%, 2.9%, 18%)
CIE-LABlab(61.57, 49.75, -30.22)
CIE-LCHlch(61.57, 58.20, 328.73°)
OKLaboklab(68.91% 0.1399 -0.0824)
OKLCHoklch(68.91% 0.162 329.5)
XYZxyz(43.0908, 29.9041, 59.9907)
Luminance0.2990 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172CB #72D178
analogous
#A772D1 #D172CB #D1729B
triadic
#D172CB #CBD172 #72CBD1
tetradic
#D172CB #D1A772 #72D178 #729BD1
square
#D172CB #D1A772 #72D178 #729BD1
split-complementary
#D172CB #9BD172 #72D1A7
monochromatic
#973191 #C244BA #D172CB #E0A0DC #EFCEED

Accessibility & contrast

On white

3.01
#D172CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#D172CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D172CB
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172CB#FFFFFF#000000##000000
##D172CB1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D8DCE
Deuteranopia (green-blind)
#8799C8
Tritanopia (blue-blind)
#D77A95
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d172cb;
/* rgb */ color: rgb(209, 114, 203);
/* oklch */ color: oklch(68.9% 0.162 329.5);
Tailwind
colors: {
  custom: {
    50: '#e19ddb',
    500: '#d172cb',
    950: '#000000',
  },
}
SCSS
$custom: #d172cb;
$custom-light: #e19ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#d172cb",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 203
  },
  "hsl": {
    "h": 303.789,
    "s": 50.802,
    "l": 63.333
  },
  "oklch": {
    "l": 0.68905,
    "c": 0.16239,
    "h": 329.5
  },
  "luminance": 0.29902
}

Semantic roles & 50–950 ramp

primary
#D172CB
secondary
#BEE0C1
accent
#BE3127
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160E15
muted
#847E83

Preview Lab

Preview with #D172CB

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

Preview Lab → · Contrast checker → · Palette generator →

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