#D172C8#D172C8

#D172C8 is a light, vivid purple. Relative luminance 0.298; OKLCH L 68.8% C 0.160 H 330.7°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#D172C8
RGBrgb(209, 114, 200)
HSLhsl(306, 51%, 63%)
HSVhsv(306, 45%, 82%)
CMYKcmyk(0%, 45.5%, 4.3%, 18%)
CIE-LABlab(61.45, 49.22, -28.71)
CIE-LCHlch(61.45, 56.98, 329.74°)
OKLaboklab(68.77% 0.1393 -0.0781)
OKLCHoklch(68.77% 0.16 330.7)
XYZxyz(42.7367, 29.7625, 58.1261)
Luminance0.2976 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172C8 #72D17B
analogous
#AA72D1 #D172C8 #D17298
triadic
#D172C8 #C8D172 #72C8D1
tetradic
#D172C8 #D1AA72 #72D17B #7298D1
square
#D172C8 #D1AA72 #72D17B #7298D1
split-complementary
#D172C8 #98D172 #72D1AA
monochromatic
#97318E #C244B6 #D172C8 #E0A0DA #EFCEEC

Accessibility & contrast

On white

3.02
#D172C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#D172C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D172C8
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172C8#FFFFFF#000000##000000
##D172C81.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E8CCB
Deuteranopia (green-blind)
#8899C5
Tritanopia (blue-blind)
#D87994
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #d172c8;
/* rgb */ color: rgb(209, 114, 200);
/* oklch */ color: oklch(68.8% 0.160 330.7);
Tailwind
colors: {
  custom: {
    50: '#e19dd9',
    500: '#d172c8',
    950: '#000000',
  },
}
SCSS
$custom: #d172c8;
$custom-light: #e19dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#d172c8",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 200
  },
  "hsl": {
    "h": 305.684,
    "s": 50.802,
    "l": 63.333
  },
  "oklch": {
    "l": 0.68773,
    "c": 0.15973,
    "h": 330.7
  },
  "luminance": 0.2976
}

Semantic roles & 50–950 ramp

primary
#D172C8
secondary
#BEE0C2
accent
#BE3627
background
#FEF9FD
surface
#FCF2FA
border
#D5CCD3
text
#150E14
muted
#847E83

Preview Lab

Preview with #D172C8

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

Preview Lab → · Contrast checker → · Palette generator →

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