#D171DC#D171DC

#D171DC is a light, vivid purple. Relative luminance 0.305; OKLCH L 69.5% C 0.180 H 323.4°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#D171DC
RGBrgb(209, 113, 220)
HSLhsl(294, 60%, 65%)
HSVhsv(294, 49%, 86%)
CMYKcmyk(5%, 48.6%, 0%, 13.7%)
CIE-LABlab(62.11, 53.34, -38.93)
CIE-LCHlch(62.11, 66.03, 323.88°)
OKLaboklab(69.55% 0.1443 -0.1073)
OKLCHoklch(69.55% 0.18 323.4)
XYZxyz(45.1166, 30.5349, 71.2136)
Luminance0.3053 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171DC #7CDC71
analogous
#9C71DC #D171DC #DC71B1
triadic
#D171DC #DCD171 #71DCD1
tetradic
#D171DC #DC9C71 #7CDC71 #71B1DC
square
#D171DC #DC9C71 #7CDC71 #71B1DC
split-complementary
#D171DC #B1DC71 #71DC9C
monochromatic
#9C2AA9 #C140D0 #D171DC #E1A2E8 #F1D3F4

Accessibility & contrast

On white

2.95
#D171DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#D171DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171DC
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171DC#FFFFFF#000000##000000
##D171DC1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#638FE0
Deuteranopia (green-blind)
#7F9AD9
Tritanopia (blue-blind)
#D47E9C
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #d171dc;
/* rgb */ color: rgb(209, 113, 220);
/* oklch */ color: oklch(69.5% 0.180 323.4);
Tailwind
colors: {
  custom: {
    50: '#e19de7',
    500: '#d171dc',
    950: '#000000',
  },
}
SCSS
$custom: #d171dc;
$custom-light: #e19de7;
$custom-dark: #000000;
JSON
{
  "hex": "#d171dc",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 293.832,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.69547,
    "c": 0.17981,
    "h": 323.4
  },
  "luminance": 0.30533
}

Semantic roles & 50–950 ramp

primary
#D171DC
secondary
#C6E6C2
accent
#C81D2F
background
#FEF9FE
surface
#FCF2FC
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D171DC

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

Preview Lab → · Contrast checker → · Palette generator →

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