#D172CD#D172CD

#D172CD is a light, vivid purple. Relative luminance 0.300; OKLCH L 69.0% C 0.164 H 328.7°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#D172CD
RGBrgb(209, 114, 205)
HSLhsl(303, 51%, 63%)
HSVhsv(303, 45%, 82%)
CMYKcmyk(0%, 45.5%, 1.9%, 18%)
CIE-LABlab(61.65, 50.10, -31.22)
CIE-LCHlch(61.65, 59.03, 328.07°)
OKLaboklab(68.99% 0.1403 -0.0852)
OKLCHoklch(68.99% 0.164 328.7)
XYZxyz(43.3306, 30.0000, 61.2540)
Luminance0.3000 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172CD #72D176
analogous
#A572D1 #D172CD #D1729D
triadic
#D172CD #CDD172 #72CDD1
tetradic
#D172CD #D1A572 #72D176 #729DD1
square
#D172CD #D1A572 #72D176 #729DD1
split-complementary
#D172CD #9DD172 #72D1A5
monochromatic
#973193 #C244BD #D172CD #E0A0DD #EFCEEE

Accessibility & contrast

On white

3.00
#D172CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#D172CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172CD
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172CD#FFFFFF#000000##000000
##D172CD1.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8DD0
Deuteranopia (green-blind)
#8699CA
Tritanopia (blue-blind)
#D77B96
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d172cd;
/* rgb */ color: rgb(209, 114, 205);
/* oklch */ color: oklch(69.0% 0.164 328.7);
Tailwind
colors: {
  custom: {
    50: '#e19ddc',
    500: '#d172cd',
    950: '#000000',
  },
}
SCSS
$custom: #d172cd;
$custom-light: #e19ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#d172cd",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 302.526,
    "s": 50.802,
    "l": 63.333
  },
  "oklch": {
    "l": 0.68993,
    "c": 0.16419,
    "h": 328.7
  },
  "luminance": 0.29998
}

Semantic roles & 50–950 ramp

primary
#D172CD
secondary
#BEE0C0
accent
#BE2E27
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160F15
muted
#847E83

Preview Lab

Preview with #D172CD

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

Preview Lab → · Contrast checker → · Palette generator →

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