#D171F5#D171F5

#D171F5 is a light, highly saturated purple. Relative luminance 0.320; OKLCH L 70.8% C 0.204 H 316.0°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#D171F5
RGBrgb(209, 113, 245)
HSLhsl(284, 87%, 70%)
HSVhsv(284, 54%, 96%)
CMYKcmyk(14.7%, 53.9%, 0%, 3.9%)
CIE-LABlab(63.31, 58.19, -50.94)
CIE-LCHlch(63.31, 77.33, 318.80°)
OKLaboklab(70.82% 0.147 -0.1421)
OKLCHoklch(70.82% 0.204 316)
XYZxyz(48.6785, 31.9597, 89.9731)
Luminance0.3196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171F5 #95F571
analogous
#8F71F5 #D171F5 #F571D7
triadic
#D171F5 #F5D171 #71F5D1
tetradic
#D171F5 #F58F71 #95F571 #71D7F5
square
#D171F5 #F58F71 #95F571 #71D7F5
split-complementary
#D171F5 #D7F571 #71F58F
monochromatic
#A410DC #BE38F1 #D171F5 #E4AAF9 #F6E2FD

Accessibility & contrast

On white

2.84
#D171F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#D171F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171F5
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171F5#FFFFFF#000000##000000
##D171F51.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5293F9
Deuteranopia (green-blind)
#729CF2
Tritanopia (blue-blind)
#CF86A9
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d171f5;
/* rgb */ color: rgb(209, 113, 245);
/* oklch */ color: oklch(70.8% 0.204 316.0);
Tailwind
colors: {
  custom: {
    50: '#e29df9',
    500: '#d171f5',
    950: '#000000',
  },
}
SCSS
$custom: #d171f5;
$custom-light: #e29df9;
$custom-dark: #000000;
JSON
{
  "hex": "#d171f5",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 283.636,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.7082,
    "c": 0.20445,
    "h": 316
  },
  "luminance": 0.31958
}

Semantic roles & 50–950 ramp

primary
#D171F5
secondary
#D9F3CF
accent
#E30240
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D171F5

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

Preview Lab → · Contrast checker → · Palette generator →

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