#D172F9#D172F9

#D172F9 is a light, highly saturated purple. Relative luminance 0.324; OKLCH L 71.2% C 0.207 H 314.9°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#D172F9
RGBrgb(209, 114, 249)
HSLhsl(282, 92%, 71%)
HSVhsv(282, 54%, 98%)
CMYKcmyk(16.1%, 54.2%, 0%, 2.4%)
CIE-LABlab(63.70, 58.50, -52.53)
CIE-LCHlch(63.70, 78.63, 318.08°)
OKLaboklab(71.17% 0.146 -0.1467)
OKLCHoklch(71.17% 0.207 314.9)
XYZxyz(49.4080, 32.4310, 93.2613)
Luminance0.3243 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172F9 #9AF972
analogous
#8D72F9 #D172F9 #F972DE
triadic
#D172F9 #F9D172 #72F9D1
tetradic
#D172F9 #F98D72 #9AF972 #72DEF9
square
#D172F9 #F98D72 #9AF972 #72DEF9
split-complementary
#D172F9 #DEF972 #72F98D
monochromatic
#A50AE7 #BE37F7 #D172F9 #E4ADFB #F5E2FE

Accessibility & contrast

On white

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

On black

7.49
#D172F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172F9
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172F9#FFFFFF#000000##000000
##D172F91.002.817.497.49
#FFFFFF2.811.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5095FD
Deuteranopia (green-blind)
#709DF6
Tritanopia (blue-blind)
#CE88AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d172f9;
/* rgb */ color: rgb(209, 114, 249);
/* oklch */ color: oklch(71.2% 0.207 314.9);
Tailwind
colors: {
  custom: {
    50: '#e29efc',
    500: '#d172f9',
    950: '#000000',
  },
}
SCSS
$custom: #d172f9;
$custom-light: #e29efc;
$custom-dark: #000000;
JSON
{
  "hex": "#d172f9",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 249
  },
  "hsl": {
    "h": 282.222,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71171,
    "c": 0.20699,
    "h": 314.9
  },
  "luminance": 0.32429
}

Semantic roles & 50–950 ramp

primary
#D172F9
secondary
#DCF5D2
accent
#E60044
background
#FEFAFF
surface
#FCF3FF
border
#D5CDD7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D172F9

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

Preview Lab → · Contrast checker → · Palette generator →

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