#D171FB#D171FB

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

Color values

HEX#D171FB
RGBrgb(209, 113, 251)
HSLhsl(282, 95%, 71%)
HSVhsv(282, 55%, 98%)
CMYKcmyk(16.7%, 55%, 0%, 1.6%)
CIE-LABlab(63.62, 59.40, -53.76)
CIE-LCHlch(63.62, 80.11, 317.85°)
OKLaboklab(71.14% 0.1474 -0.1503)
OKLCHoklch(71.14% 0.211 314.4)
XYZxyz(49.6094, 32.3320, 94.8755)
Luminance0.3233 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171FB #9BFB71
analogous
#8C71FB #D171FB #FB71E0
triadic
#D171FB #FBD171 #71FBD1
tetradic
#D171FB #FB8C71 #9BFB71 #71E0FB
square
#D171FB #FB8C71 #9BFB71 #71E0FB
split-complementary
#D171FB #E0FB71 #71FB8C
monochromatic
#A507EB #BE35F9 #D171FB #E4ADFD #F5E1FE

Accessibility & contrast

On white

2.81
#D171FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#D171FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171FB
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171FB#FFFFFF#000000##000000
##D171FB1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D95FF
Deuteranopia (green-blind)
#6E9DF7
Tritanopia (blue-blind)
#CE88AC
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d171fb;
/* rgb */ color: rgb(209, 113, 251);
/* oklch */ color: oklch(71.1% 0.211 314.4);
Tailwind
colors: {
  custom: {
    50: '#e29dfd',
    500: '#d171fb',
    950: '#000000',
  },
}
SCSS
$custom: #d171fb;
$custom-light: #e29dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#d171fb",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 281.739,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71144,
    "c": 0.21051,
    "h": 314.4
  },
  "luminance": 0.32331
}

Semantic roles & 50–950 ramp

primary
#D171FB
secondary
#DDF6D2
accent
#E60046
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D171FB

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

Preview Lab → · Contrast checker → · Palette generator →

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