#D171F8#D171F8

#D171F8 is a light, highly saturated purple. Relative luminance 0.321; OKLCH L 71.0% C 0.207 H 315.2°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#D171F8
RGBrgb(209, 113, 248)
HSLhsl(283, 91%, 71%)
HSVhsv(283, 54%, 97%)
CMYKcmyk(15.7%, 54.4%, 0%, 2.7%)
CIE-LABlab(63.46, 58.79, -52.35)
CIE-LCHlch(63.46, 78.72, 318.32°)
OKLaboklab(70.98% 0.1472 -0.1462)
OKLCHoklch(70.98% 0.207 315.2)
XYZxyz(49.1402, 32.1444, 92.4047)
Luminance0.3214 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171F8 #98F871
analogous
#8D71F8 #D171F8 #F871DB
triadic
#D171F8 #F8D171 #71F8D1
tetradic
#D171F8 #F88D71 #98F871 #71DBF8
square
#D171F8 #F88D71 #98F871 #71DBF8
split-complementary
#D171F8 #DBF871 #71F88D
monochromatic
#A50BE3 #BE37F5 #D171F8 #E4ABFB #F6E2FE

Accessibility & contrast

On white

2.83
#D171F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#D171F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171F8
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171F8#FFFFFF#000000##000000
##D171F81.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F94FC
Deuteranopia (green-blind)
#709CF5
Tritanopia (blue-blind)
#CE87AA
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d171f8;
/* rgb */ color: rgb(209, 113, 248);
/* oklch */ color: oklch(71.0% 0.207 315.2);
Tailwind
colors: {
  custom: {
    50: '#e29dfb',
    500: '#d171f8',
    950: '#000000',
  },
}
SCSS
$custom: #d171f8;
$custom-light: #e29dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#d171f8",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 282.667,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.70981,
    "c": 0.20748,
    "h": 315.2
  },
  "luminance": 0.32143
}

Semantic roles & 50–950 ramp

primary
#D171F8
secondary
#DBF5D0
accent
#E60042
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D171F8

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

Preview Lab → · Contrast checker → · Palette generator →

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