#D172FC#D172FC

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

Color values

HEX#D172FC
RGBrgb(209, 114, 252)
HSLhsl(281, 96%, 72%)
HSVhsv(281, 55%, 99%)
CMYKcmyk(17.1%, 54.8%, 0%, 1.2%)
CIE-LABlab(63.85, 59.11, -53.93)
CIE-LCHlch(63.85, 80.02, 317.62°)
OKLaboklab(71.33% 0.1462 -0.1508)
OKLCHoklch(71.33% 0.21 314.1)
XYZxyz(49.8796, 32.6196, 95.7453)
Luminance0.3262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172FC #9DFC72
analogous
#8C72FC #D172FC #FC72E2
triadic
#D172FC #FCD172 #72FCD1
tetradic
#D172FC #FC8C72 #9DFC72 #72E2FC
square
#D172FC #FC8C72 #9DFC72 #72E2FC
split-complementary
#D172FC #E2FC72 #72FC8C
monochromatic
#A605EF #BD36FB #D172FC #E5AEFD #F5E1FE

Accessibility & contrast

On white

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

On black

7.52
#D172FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172FC
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172FC#FFFFFF#000000##000000
##D172FC1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D95FF
Deuteranopia (green-blind)
#6E9DF8
Tritanopia (blue-blind)
#CD89AC
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d172fc;
/* rgb */ color: rgb(209, 114, 252);
/* oklch */ color: oklch(71.3% 0.210 314.1);
Tailwind
colors: {
  custom: {
    50: '#e29efe',
    500: '#d172fc',
    950: '#000000',
  },
}
SCSS
$custom: #d172fc;
$custom-light: #e29efe;
$custom-dark: #000000;
JSON
{
  "hex": "#d172fc",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 252
  },
  "hsl": {
    "h": 281.304,
    "s": 95.833,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71334,
    "c": 0.21004,
    "h": 314.1
  },
  "luminance": 0.32618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D172FC

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

Preview Lab → · Contrast checker → · Palette generator →

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