#D172FD#D172FD

#D172FD is a light, highly saturated purple. Relative luminance 0.327; OKLCH L 71.4% C 0.211 H 313.9°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#D172FD
RGBrgb(209, 114, 253)
HSLhsl(281, 97%, 72%)
HSVhsv(281, 55%, 99%)
CMYKcmyk(17.4%, 54.9%, 0%, 0.8%)
CIE-LABlab(63.90, 59.32, -54.40)
CIE-LCHlch(63.90, 80.49, 317.48°)
OKLaboklab(71.39% 0.1463 -0.1522)
OKLCHoklch(71.39% 0.211 313.9)
XYZxyz(50.0385, 32.6832, 96.5820)
Luminance0.3268 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172FD #9EFD72
analogous
#8C72FD #D172FD #FD72E4
triadic
#D172FD #FDD172 #72FDD1
tetradic
#D172FD #FD8C72 #9EFD72 #72E4FD
square
#D172FD #FD8C72 #9EFD72 #72E4FD
split-complementary
#D172FD #E4FD72 #72FD8C
monochromatic
#A603F1 #BD36FC #D172FD #E5AEFE #F5E1FF

Accessibility & contrast

On white

2.79
#D172FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#D172FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172FD
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172FD#FFFFFF#000000##000000
##D172FD1.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C96FF
Deuteranopia (green-blind)
#6E9DF9
Tritanopia (blue-blind)
#CD89AD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d172fd;
/* rgb */ color: rgb(209, 114, 253);
/* oklch */ color: oklch(71.4% 0.211 313.9);
Tailwind
colors: {
  custom: {
    50: '#e29eff',
    500: '#d172fd',
    950: '#000000',
  },
}
SCSS
$custom: #d172fd;
$custom-light: #e29eff;
$custom-dark: #000000;
JSON
{
  "hex": "#d172fd",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 253
  },
  "hsl": {
    "h": 281.007,
    "s": 97.203,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71389,
    "c": 0.21106,
    "h": 313.9
  },
  "luminance": 0.32682
}

Semantic roles & 50–950 ramp

primary
#D172FD
secondary
#DFF7D4
accent
#E60049
background
#FEFAFF
surface
#FCF3FF
border
#D5CDD7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D172FD

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

Preview Lab → · Contrast checker → · Palette generator →

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