#D172F2#D172F2

#D172F2 is a light, vivid purple. Relative luminance 0.320; OKLCH L 70.8% C 0.200 H 316.7°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#D172F2
RGBrgb(209, 114, 242)
HSLhsl(285, 83%, 70%)
HSVhsv(285, 53%, 95%)
CMYKcmyk(13.6%, 52.9%, 0%, 5.1%)
CIE-LABlab(63.34, 57.10, -49.22)
CIE-LCHlch(63.34, 75.39, 319.23°)
OKLaboklab(70.8% 0.1455 -0.1371)
OKLCHoklch(70.8% 0.2 316.7)
XYZxyz(48.3365, 32.0024, 87.6181)
Luminance0.3200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172F2 #93F272
analogous
#9172F2 #D172F2 #F272D3
triadic
#D172F2 #F2D172 #72F2D1
tetradic
#D172F2 #F29172 #93F272 #72D3F2
square
#D172F2 #F29172 #93F272 #72D3F2
split-complementary
#D172F2 #D3F272 #72F291
monochromatic
#A414D6 #BF3AED #D172F2 #E3AAF7 #F6E2FC

Accessibility & contrast

On white

2.84
#D172F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#D172F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172F2
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172F2#FFFFFF#000000##000000
##D172F21.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5693F6
Deuteranopia (green-blind)
#759CEF
Tritanopia (blue-blind)
#D086A8
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d172f2;
/* rgb */ color: rgb(209, 114, 242);
/* oklch */ color: oklch(70.8% 0.200 316.7);
Tailwind
colors: {
  custom: {
    50: '#e29ef7',
    500: '#d172f2',
    950: '#000000',
  },
}
SCSS
$custom: #d172f2;
$custom-light: #e29ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#d172f2",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 284.531,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.70797,
    "c": 0.19991,
    "h": 316.7
  },
  "luminance": 0.32001
}

Semantic roles & 50–950 ramp

primary
#D172F2
secondary
#D7F2CE
accent
#E0063E
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172F2

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

Preview Lab → · Contrast checker → · Palette generator →

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