#D172FB#D172FB

#D172FB is a light, highly saturated purple. Relative luminance 0.326; OKLCH L 71.3% C 0.209 H 314.4°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#D172FB
RGBrgb(209, 114, 251)
HSLhsl(282, 94%, 72%)
HSVhsv(282, 55%, 98%)
CMYKcmyk(16.7%, 54.6%, 0%, 1.6%)
CIE-LABlab(63.80, 58.91, -53.47)
CIE-LCHlch(63.80, 79.56, 317.77°)
OKLaboklab(71.28% 0.1462 -0.1494)
OKLCHoklch(71.28% 0.209 314.4)
XYZxyz(49.7216, 32.5564, 94.9129)
Luminance0.3256 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172FB #9CFB72
analogous
#8D72FB #D172FB #FB72E1
triadic
#D172FB #FBD172 #72FBD1
tetradic
#D172FB #FB8D72 #9CFB72 #72E1FB
square
#D172FB #FB8D72 #9CFB72 #72E1FB
split-complementary
#D172FB #E1FB72 #72FB8D
monochromatic
#A607EC #BE36F9 #D172FB #E4AEFD #F5E1FE

Accessibility & contrast

On white

2.80
#D172FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#D172FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172FB
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172FB#FFFFFF#000000##000000
##D172FB1.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E95FF
Deuteranopia (green-blind)
#6F9DF7
Tritanopia (blue-blind)
#CE89AC
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d172fb;
/* rgb */ color: rgb(209, 114, 251);
/* oklch */ color: oklch(71.3% 0.209 314.4);
Tailwind
colors: {
  custom: {
    50: '#e29efd',
    500: '#d172fb',
    950: '#000000',
  },
}
SCSS
$custom: #d172fb;
$custom-light: #e29efd;
$custom-dark: #000000;
JSON
{
  "hex": "#d172fb",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 251
  },
  "hsl": {
    "h": 281.606,
    "s": 94.483,
    "l": 71.569
  },
  "oklch": {
    "l": 0.71279,
    "c": 0.20903,
    "h": 314.4
  },
  "luminance": 0.32555
}

Semantic roles & 50–950 ramp

primary
#D172FB
secondary
#DEF6D3
accent
#E60046
background
#FEFAFF
surface
#FCF3FF
border
#D5CDD7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D172FB

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

Preview Lab → · Contrast checker → · Palette generator →

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