#D171F0#D171F0

#D171F0 is a light, vivid purple. Relative luminance 0.317; OKLCH L 70.6% C 0.199 H 317.3°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#D171F0
RGBrgb(209, 113, 240)
HSLhsl(285, 81%, 69%)
HSVhsv(285, 53%, 94%)
CMYKcmyk(12.9%, 52.9%, 0%, 5.9%)
CIE-LABlab(63.06, 57.19, -48.57)
CIE-LCHlch(63.06, 75.03, 319.66°)
OKLaboklab(70.56% 0.1466 -0.1352)
OKLCHoklch(70.56% 0.199 317.3)
XYZxyz(47.9256, 31.6585, 86.0073)
Luminance0.3166 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171F0 #90F071
analogous
#9271F0 #D171F0 #F071D0
triadic
#D171F0 #F0D171 #71F0D1
tetradic
#D171F0 #F09271 #90F071 #71D0F0
square
#D171F0 #F09271 #90F071 #71D0F0
split-complementary
#D171F0 #D0F071 #71F092
monochromatic
#A316D1 #BF3AEA #D171F0 #E3A8F6 #F5E0FC

Accessibility & contrast

On white

2.86
#D171F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#D171F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171F0
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171F0#FFFFFF#000000##000000
##D171F01.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5692F4
Deuteranopia (green-blind)
#759CED
Tritanopia (blue-blind)
#D084A6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d171f0;
/* rgb */ color: rgb(209, 113, 240);
/* oklch */ color: oklch(70.6% 0.199 317.3);
Tailwind
colors: {
  custom: {
    50: '#e29df5',
    500: '#d171f0',
    950: '#000000',
  },
}
SCSS
$custom: #d171f0;
$custom-light: #e29df5;
$custom-dark: #000000;
JSON
{
  "hex": "#d171f0",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 285.354,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.70555,
    "c": 0.19943,
    "h": 317.3
  },
  "luminance": 0.31657
}

Semantic roles & 50–950 ramp

primary
#D171F0
secondary
#D5F1CC
accent
#DD083C
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D171F0

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

Preview Lab → · Contrast checker → · Palette generator →

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