#D172F5#D172F5

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

Color values

HEX#D172F5
RGBrgb(209, 114, 245)
HSLhsl(284, 87%, 70%)
HSVhsv(284, 53%, 96%)
CMYKcmyk(14.7%, 53.5%, 0%, 3.9%)
CIE-LABlab(63.49, 57.70, -50.64)
CIE-LCHlch(63.49, 76.77, 318.72°)
OKLaboklab(70.96% 0.1457 -0.1412)
OKLCHoklch(70.96% 0.203 315.9)
XYZxyz(48.7907, 32.1841, 90.0105)
Luminance0.3218 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172F5 #96F572
analogous
#8F72F5 #D172F5 #F572D8
triadic
#D172F5 #F5D172 #72F5D1
tetradic
#D172F5 #F58F72 #96F572 #72D8F5
square
#D172F5 #F58F72 #96F572 #72D8F5
split-complementary
#D172F5 #D8F572 #72F58F
monochromatic
#A510DD #BE39F1 #D172F5 #E4ABF9 #F6E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D172F5#FFFFFF#000000##000000
##D172F51.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)
#5394F9
Deuteranopia (green-blind)
#739DF2
Tritanopia (blue-blind)
#CF87A9
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d172f5;
/* rgb */ color: rgb(209, 114, 245);
/* oklch */ color: oklch(71.0% 0.203 315.9);
Tailwind
colors: {
  custom: {
    50: '#e29ef9',
    500: '#d172f5',
    950: '#000000',
  },
}
SCSS
$custom: #d172f5;
$custom-light: #e29ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#d172f5",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 245
  },
  "hsl": {
    "h": 283.511,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.70956,
    "c": 0.20294,
    "h": 315.9
  },
  "luminance": 0.32183
}

Semantic roles & 50–950 ramp

primary
#D172F5
secondary
#D9F3CF
accent
#E30240
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172F5

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

Preview Lab → · Contrast checker → · Palette generator →

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