#D171FF#D171FF

#D171FF is a light, highly saturated purple. Relative luminance 0.326; OKLCH L 71.4% C 0.215 H 313.5°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#D171FF
RGBrgb(209, 113, 255)
HSLhsl(281, 100%, 72%)
HSVhsv(281, 56%, 100%)
CMYKcmyk(18%, 55.7%, 0%, 0%)
CIE-LABlab(63.83, 60.22, -55.62)
CIE-LCHlch(63.83, 81.98, 317.27°)
OKLaboklab(71.36% 0.1476 -0.1557)
OKLCHoklch(71.36% 0.215 313.5)
XYZxyz(50.2466, 32.5869, 98.2314)
Luminance0.3259 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171FF #9FFF71
analogous
#8A71FF #D171FF #FF71E6
triadic
#D171FF #FFD171 #71FFD1
tetradic
#D171FF #FF8A71 #9FFF71 #71E6FF
square
#D171FF #FF8A71 #9FFF71 #71E6FF
split-complementary
#D171FF #E6FF71 #71FF8A
monochromatic
#A600F6 #BD34FF #D171FF #E5AEFF #F5E0FF

Accessibility & contrast

On white

2.79
#D171FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#D171FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171FF
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171FF#FFFFFF#000000##000000
##D171FF1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4995FF
Deuteranopia (green-blind)
#6B9DFB
Tritanopia (blue-blind)
#CD89AE
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d171ff;
/* rgb */ color: rgb(209, 113, 255);
/* oklch */ color: oklch(71.4% 0.215 313.5);
Tailwind
colors: {
  custom: {
    50: '#e29eff',
    500: '#d171ff',
    950: '#000000',
  },
}
SCSS
$custom: #d171ff;
$custom-light: #e29eff;
$custom-dark: #000000;
JSON
{
  "hex": "#d171ff",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 255
  },
  "hsl": {
    "h": 280.563,
    "s": 100,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71365,
    "c": 0.21457,
    "h": 313.5
  },
  "luminance": 0.32586
}

Semantic roles & 50–950 ramp

primary
#D171FF
secondary
#DFF7D4
accent
#E6004A
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D171FF

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

Preview Lab → · Contrast checker → · Palette generator →

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