#D171CD#D171CD

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

Color values

HEX#D171CD
RGBrgb(209, 113, 205)
HSLhsl(303, 51%, 63%)
HSVhsv(303, 46%, 82%)
CMYKcmyk(0%, 45.9%, 1.9%, 18%)
CIE-LABlab(61.46, 50.61, -31.52)
CIE-LCHlch(61.46, 59.62, 328.09°)
OKLaboklab(68.85% 0.1417 -0.0861)
OKLCHoklch(68.85% 0.166 328.7)
XYZxyz(43.2185, 29.7757, 61.2166)
Luminance0.2977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171CD #71D175
analogous
#A571D1 #D171CD #D1719D
triadic
#D171CD #CDD171 #71CDD1
tetradic
#D171CD #D1A571 #71D175 #719DD1
square
#D171CD #D1A571 #71D175 #719DD1
split-complementary
#D171CD #9DD171 #71D1A5
monochromatic
#973193 #C243BD #D171CD #E09FDD #EFCDEE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D171CD#FFFFFF#000000##000000
##D171CD1.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)
#6B8CD0
Deuteranopia (green-blind)
#8699CA
Tritanopia (blue-blind)
#D77A95
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #d171cd;
/* rgb */ color: rgb(209, 113, 205);
/* oklch */ color: oklch(68.8% 0.166 328.7);
Tailwind
colors: {
  custom: {
    50: '#e19ddc',
    500: '#d171cd',
    950: '#000000',
  },
}
SCSS
$custom: #d171cd;
$custom-light: #e19ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#d171cd",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 302.5,
    "s": 51.064,
    "l": 63.137
  },
  "oklch": {
    "l": 0.68849,
    "c": 0.16584,
    "h": 328.7
  },
  "luminance": 0.29773
}

Semantic roles & 50–950 ramp

primary
#D171CD
secondary
#BEE0BF
accent
#BE2D27
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160E15
muted
#847E83

Preview Lab

Preview with #D171CD

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

Preview Lab → · Contrast checker → · Palette generator →

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