#D172F0#D172F0

#D172F0 is a light, vivid purple. Relative luminance 0.319; OKLCH L 70.7% C 0.198 H 317.2°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#D172F0
RGBrgb(209, 114, 240)
HSLhsl(285, 81%, 69%)
HSVhsv(285, 53%, 94%)
CMYKcmyk(12.9%, 52.5%, 0%, 5.9%)
CIE-LABlab(63.25, 56.70, -48.28)
CIE-LCHlch(63.25, 74.47, 319.59°)
OKLaboklab(70.69% 0.1453 -0.1343)
OKLCHoklch(70.69% 0.198 317.2)
XYZxyz(48.0377, 31.8829, 86.0447)
Luminance0.3188 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172F0 #91F072
analogous
#9272F0 #D172F0 #F072D0
triadic
#D172F0 #F0D172 #72F0D1
tetradic
#D172F0 #F09272 #91F072 #72D0F0
square
#D172F0 #F09272 #91F072 #72D0F0
split-complementary
#D172F0 #D0F072 #72F092
monochromatic
#A316D1 #BF3BEA #D172F0 #E3A9F6 #F5E1FC

Accessibility & contrast

On white

2.85
#D172F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#D172F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172F0
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172F0#FFFFFF#000000##000000
##D172F01.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5793F4
Deuteranopia (green-blind)
#769CED
Tritanopia (blue-blind)
#D085A7
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d172f0;
/* rgb */ color: rgb(209, 114, 240);
/* oklch */ color: oklch(70.7% 0.198 317.2);
Tailwind
colors: {
  custom: {
    50: '#e29ef5',
    500: '#d172f0',
    950: '#000000',
  },
}
SCSS
$custom: #d172f0;
$custom-light: #e29ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#d172f0",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 240
  },
  "hsl": {
    "h": 285.238,
    "s": 80.769,
    "l": 69.412
  },
  "oklch": {
    "l": 0.70692,
    "c": 0.19789,
    "h": 317.2
  },
  "luminance": 0.31881
}

Semantic roles & 50–950 ramp

primary
#D172F0
secondary
#D6F1CD
accent
#DD083D
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172F0

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

Preview Lab → · Contrast checker → · Palette generator →

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