#D172FE#D172FE

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

Color values

HEX#D172FE
RGBrgb(209, 114, 254)
HSLhsl(281, 99%, 72%)
HSVhsv(281, 55%, 100%)
CMYKcmyk(17.7%, 55.1%, 0%, 0.4%)
CIE-LABlab(63.96, 59.52, -54.87)
CIE-LCHlch(63.96, 80.95, 317.33°)
OKLaboklab(71.44% 0.1463 -0.1535)
OKLCHoklch(71.44% 0.212 313.6)
XYZxyz(50.1982, 32.7471, 97.4232)
Luminance0.3275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172FE #9FFE72
analogous
#8B72FE #D172FE #FE72E5
triadic
#D172FE #FED172 #72FED1
tetradic
#D172FE #FE8B72 #9FFE72 #72E5FE
square
#D172FE #FE8B72 #9FFE72 #72E5FE
split-complementary
#D172FE #E5FE72 #72FE8B
monochromatic
#A602F4 #BD35FE #D172FE #E5AFFE #F5E1FF

Accessibility & contrast

On white

2.78
#D172FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#D172FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172FE
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172FE#FFFFFF#000000##000000
##D172FE1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B96FF
Deuteranopia (green-blind)
#6D9DFA
Tritanopia (blue-blind)
#CD8AAD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d172fe;
/* rgb */ color: rgb(209, 114, 254);
/* oklch */ color: oklch(71.4% 0.212 313.6);
Tailwind
colors: {
  custom: {
    50: '#e29eff',
    500: '#d172fe',
    950: '#000000',
  },
}
SCSS
$custom: #d172fe;
$custom-light: #e29eff;
$custom-dark: #000000;
JSON
{
  "hex": "#d172fe",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 254
  },
  "hsl": {
    "h": 280.714,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71444,
    "c": 0.21209,
    "h": 313.6
  },
  "luminance": 0.32746
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D172FE

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

Preview Lab → · Contrast checker → · Palette generator →

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