#D171FA#D171FA

#D171FA is a light, highly saturated purple. Relative luminance 0.323; OKLCH L 71.1% C 0.209 H 314.7°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#D171FA
RGBrgb(209, 113, 250)
HSLhsl(282, 93%, 71%)
HSVhsv(282, 55%, 98%)
CMYKcmyk(16.4%, 54.8%, 0%, 2%)
CIE-LABlab(63.56, 59.20, -53.29)
CIE-LCHlch(63.56, 79.65, 318.01°)
OKLaboklab(71.09% 0.1474 -0.1489)
OKLCHoklch(71.09% 0.21 314.7)
XYZxyz(49.4522, 32.2692, 94.0475)
Luminance0.3227 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171FA #9AFA71
analogous
#8C71FA #D171FA #FA71DE
triadic
#D171FA #FAD171 #71FAD1
tetradic
#D171FA #FA8C71 #9AFA71 #71DEFA
square
#D171FA #FA8C71 #9AFA71 #71DEFA
split-complementary
#D171FA #DEFA71 #71FA8C
monochromatic
#A508E8 #BE36F8 #D171FA #E4ACFC #F5E1FE

Accessibility & contrast

On white

2.82
#D171FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#D171FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171FA
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171FA#FFFFFF#000000##000000
##D171FA1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D94FE
Deuteranopia (green-blind)
#6F9DF6
Tritanopia (blue-blind)
#CE88AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d171fa;
/* rgb */ color: rgb(209, 113, 250);
/* oklch */ color: oklch(71.1% 0.209 314.7);
Tailwind
colors: {
  custom: {
    50: '#e29dfc',
    500: '#d171fa',
    950: '#000000',
  },
}
SCSS
$custom: #d171fa;
$custom-light: #e29dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#d171fa",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 282.044,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.7109,
    "c": 0.2095,
    "h": 314.7
  },
  "luminance": 0.32268
}

Semantic roles & 50–950 ramp

primary
#D171FA
secondary
#DCF5D1
accent
#E60045
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D171FA

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

Preview Lab → · Contrast checker → · Palette generator →

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