#D172DB#D172DB

#D172DB is a light, vivid purple. Relative luminance 0.307; OKLCH L 69.6% C 0.177 H 323.7°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#D172DB
RGBrgb(209, 114, 219)
HSLhsl(294, 59%, 65%)
HSVhsv(294, 48%, 86%)
CMYKcmyk(4.6%, 47.9%, 0%, 14.1%)
CIE-LABlab(62.26, 52.65, -38.14)
CIE-LCHlch(62.26, 65.02, 324.08°)
OKLaboklab(69.64% 0.1427 -0.105)
OKLCHoklch(69.64% 0.177 323.7)
XYZxyz(45.0968, 30.7065, 70.5556)
Luminance0.3070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172DB #7CDB72
analogous
#9D72DB #D172DB #DB72B0
triadic
#D172DB #DBD172 #72DBD1
tetradic
#D172DB #DB9D72 #7CDB72 #72B0DB
square
#D172DB #DB9D72 #7CDB72 #72B0DB
split-complementary
#D172DB #B0DB72 #72DB9D
monochromatic
#9C2BA8 #C141CF #D172DB #E1A3E7 #F1D4F4

Accessibility & contrast

On white

2.94
#D172DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#D172DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172DB
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172DB#FFFFFF#000000##000000
##D172DB1.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#658FDF
Deuteranopia (green-blind)
#809AD8
Tritanopia (blue-blind)
#D47F9C
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #d172db;
/* rgb */ color: rgb(209, 114, 219);
/* oklch */ color: oklch(69.6% 0.177 323.7);
Tailwind
colors: {
  custom: {
    50: '#e19ee6',
    500: '#d172db',
    950: '#000000',
  },
}
SCSS
$custom: #d172db;
$custom-light: #e19ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#d172db",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 219
  },
  "hsl": {
    "h": 294.286,
    "s": 59.322,
    "l": 65.294
  },
  "oklch": {
    "l": 0.69641,
    "c": 0.17724,
    "h": 323.7
  },
  "luminance": 0.30704
}

Semantic roles & 50–950 ramp

primary
#D172DB
secondary
#C6E6C3
accent
#C71F2F
background
#FEF9FE
surface
#FCF2FC
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D172DB

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

Preview Lab → · Contrast checker → · Palette generator →

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