#D172CF#D172CF

#D172CF is a light, vivid purple. Relative luminance 0.301; OKLCH L 69.1% C 0.166 H 328.0°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#D172CF
RGBrgb(209, 114, 207)
HSLhsl(301, 51%, 63%)
HSVhsv(301, 45%, 82%)
CMYKcmyk(0%, 45.5%, 1%, 18%)
CIE-LABlab(61.74, 50.46, -32.21)
CIE-LCHlch(61.74, 59.86, 327.44°)
OKLaboklab(69.08% 0.1407 -0.0881)
OKLCHoklch(69.08% 0.166 328)
XYZxyz(43.5736, 30.0972, 62.5336)
Luminance0.3009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172CF #72D174
analogous
#A372D1 #D172CF #D1729F
triadic
#D172CF #CFD172 #72CFD1
tetradic
#D172CF #D1A372 #72D174 #729FD1
square
#D172CF #D1A372 #72D174 #729FD1
split-complementary
#D172CF #9FD172 #72D1A3
monochromatic
#973195 #C244BF #D172CF #E0A0DF #EFCEEE

Accessibility & contrast

On white

2.99
#D172CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#D172CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172CF
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172CF#FFFFFF#000000##000000
##D172CF1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8DD2
Deuteranopia (green-blind)
#869ACC
Tritanopia (blue-blind)
#D77B97
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d172cf;
/* rgb */ color: rgb(209, 114, 207);
/* oklch */ color: oklch(69.1% 0.166 328.0);
Tailwind
colors: {
  custom: {
    50: '#e19dde',
    500: '#d172cf',
    950: '#000000',
  },
}
SCSS
$custom: #d172cf;
$custom-light: #e19dde;
$custom-dark: #000000;
JSON
{
  "hex": "#d172cf",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 207
  },
  "hsl": {
    "h": 301.263,
    "s": 50.802,
    "l": 63.333
  },
  "oklch": {
    "l": 0.69083,
    "c": 0.166,
    "h": 328
  },
  "luminance": 0.30095
}

Semantic roles & 50–950 ramp

primary
#D172CF
secondary
#BEE0BF
accent
#BE2B27
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160F15
muted
#847E83

Preview Lab

Preview with #D172CF

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

Preview Lab → · Contrast checker → · Palette generator →

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