#D171FD#D171FD

#D171FD is a light, highly saturated purple. Relative luminance 0.325; OKLCH L 71.3% C 0.213 H 314.0°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#D171FD
RGBrgb(209, 113, 253)
HSLhsl(281, 97%, 72%)
HSVhsv(281, 55%, 99%)
CMYKcmyk(17.4%, 55.3%, 0%, 0.8%)
CIE-LABlab(63.72, 59.81, -54.69)
CIE-LCHlch(63.72, 81.04, 317.56°)
OKLaboklab(71.25% 0.1475 -0.153)
OKLCHoklch(71.25% 0.213 314)
XYZxyz(49.9263, 32.4588, 96.5446)
Luminance0.3246 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171FD #9DFD71
analogous
#8B71FD #D171FD #FD71E3
triadic
#D171FD #FDD171 #71FDD1
tetradic
#D171FD #FD8B71 #9DFD71 #71E3FD
square
#D171FD #FD8B71 #9DFD71 #71E3FD
split-complementary
#D171FD #E3FD71 #71FD8B
monochromatic
#A603F0 #BD35FC #D171FD #E5ADFE #F5E1FF

Accessibility & contrast

On white

2.80
#D171FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.49
#D171FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171FD
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171FD#FFFFFF#000000##000000
##D171FD1.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B95FF
Deuteranopia (green-blind)
#6D9DF9
Tritanopia (blue-blind)
#CD89AD
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d171fd;
/* rgb */ color: rgb(209, 113, 253);
/* oklch */ color: oklch(71.3% 0.213 314.0);
Tailwind
colors: {
  custom: {
    50: '#e29eff',
    500: '#d171fd',
    950: '#000000',
  },
}
SCSS
$custom: #d171fd;
$custom-light: #e29eff;
$custom-dark: #000000;
JSON
{
  "hex": "#d171fd",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 281.143,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71254,
    "c": 0.21254,
    "h": 314
  },
  "luminance": 0.32457
}

Semantic roles & 50–950 ramp

primary
#D171FD
secondary
#DEF7D3
accent
#E60048
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D171FD

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

Preview Lab → · Contrast checker → · Palette generator →

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