#D171F9#D171F9

#D171F9 is a light, highly saturated purple. Relative luminance 0.322; OKLCH L 71.0% C 0.208 H 314.9°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#D171F9
RGBrgb(209, 113, 249)
HSLhsl(282, 92%, 71%)
HSVhsv(282, 55%, 98%)
CMYKcmyk(16.1%, 54.6%, 0%, 2.4%)
CIE-LABlab(63.51, 58.99, -52.82)
CIE-LCHlch(63.51, 79.18, 318.16°)
OKLaboklab(71.04% 0.1473 -0.1475)
OKLCHoklch(71.04% 0.208 314.9)
XYZxyz(49.2958, 32.2066, 93.2239)
Luminance0.3221 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171F9 #99F971
analogous
#8D71F9 #D171F9 #F971DD
triadic
#D171F9 #F9D171 #71F9D1
tetradic
#D171F9 #F98D71 #99F971 #71DDF9
square
#D171F9 #F98D71 #99F971 #71DDF9
split-complementary
#D171F9 #DDF971 #71F98D
monochromatic
#A50AE6 #BE36F7 #D171F9 #E4ACFB #F5E2FE

Accessibility & contrast

On white

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

On black

7.44
#D171F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171F9
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171F9#FFFFFF#000000##000000
##D171F91.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E94FD
Deuteranopia (green-blind)
#6F9CF6
Tritanopia (blue-blind)
#CE87AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d171f9;
/* rgb */ color: rgb(209, 113, 249);
/* oklch */ color: oklch(71.0% 0.208 314.9);
Tailwind
colors: {
  custom: {
    50: '#e29dfc',
    500: '#d171f9',
    950: '#000000',
  },
}
SCSS
$custom: #d171f9;
$custom-light: #e29dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#d171f9",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 282.353,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71035,
    "c": 0.20848,
    "h": 314.9
  },
  "luminance": 0.32205
}

Semantic roles & 50–950 ramp

primary
#D171F9
secondary
#DBF5D1
accent
#E60043
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D171F9

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

Preview Lab → · Contrast checker → · Palette generator →

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