#D171DB#D171DB

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

Color values

HEX#D171DB
RGBrgb(209, 113, 219)
HSLhsl(294, 60%, 65%)
HSVhsv(294, 48%, 86%)
CMYKcmyk(4.6%, 48.4%, 0%, 14.1%)
CIE-LABlab(62.07, 53.15, -38.44)
CIE-LCHlch(62.07, 65.60, 324.13°)
OKLaboklab(69.5% 0.1441 -0.1059)
OKLCHoklch(69.5% 0.179 323.7)
XYZxyz(44.9846, 30.4821, 70.5182)
Luminance0.3048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171DB #7BDB71
analogous
#9C71DB #D171DB #DB71B0
triadic
#D171DB #DBD171 #71DBD1
tetradic
#D171DB #DB9C71 #7BDB71 #71B0DB
square
#D171DB #DB9C71 #7BDB71 #71B0DB
split-complementary
#D171DB #B0DB71 #71DB9C
monochromatic
#9B2AA7 #C140CF #D171DB #E1A2E7 #F1D3F4

Accessibility & contrast

On white

2.96
#D171DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#D171DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171DB
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171DB#FFFFFF#000000##000000
##D171DB1.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#638FDF
Deuteranopia (green-blind)
#809AD8
Tritanopia (blue-blind)
#D47E9C
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #d171db;
/* rgb */ color: rgb(209, 113, 219);
/* oklch */ color: oklch(69.5% 0.179 323.7);
Tailwind
colors: {
  custom: {
    50: '#e19de6',
    500: '#d171db',
    950: '#000000',
  },
}
SCSS
$custom: #d171db;
$custom-light: #e19de6;
$custom-dark: #000000;
JSON
{
  "hex": "#d171db",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 294.34,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.69499,
    "c": 0.17885,
    "h": 323.7
  },
  "luminance": 0.3048
}

Semantic roles & 50–950 ramp

primary
#D171DB
secondary
#C5E6C2
accent
#C71E2E
background
#FEF9FE
surface
#FCF2FC
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D171DB

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

Preview Lab → · Contrast checker → · Palette generator →

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