#D172F3#D172F3

#D172F3 is a light, highly saturated purple. Relative luminance 0.321; OKLCH L 70.9% C 0.201 H 316.4°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#D172F3
RGBrgb(209, 114, 243)
HSLhsl(284, 84%, 70%)
HSVhsv(284, 53%, 95%)
CMYKcmyk(14%, 53.1%, 0%, 4.7%)
CIE-LABlab(63.39, 57.30, -49.70)
CIE-LCHlch(63.39, 75.85, 319.06°)
OKLaboklab(70.85% 0.1456 -0.1385)
OKLCHoklch(70.85% 0.201 316.4)
XYZxyz(48.4871, 32.0626, 88.4112)
Luminance0.3206 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172F3 #94F372
analogous
#9072F3 #D172F3 #F372D5
triadic
#D172F3 #F3D172 #72F3D1
tetradic
#D172F3 #F39072 #94F372 #72D5F3
square
#D172F3 #F39072 #94F372 #72D5F3
split-complementary
#D172F3 #D5F372 #72F390
monochromatic
#A412D8 #BF3AEE #D172F3 #E3AAF8 #F6E3FD

Accessibility & contrast

On white

2.83
#D172F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#D172F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172F3
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172F3#FFFFFF#000000##000000
##D172F31.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5594F7
Deuteranopia (green-blind)
#749CF0
Tritanopia (blue-blind)
#D086A8
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d172f3;
/* rgb */ color: rgb(209, 114, 243);
/* oklch */ color: oklch(70.9% 0.201 316.4);
Tailwind
colors: {
  custom: {
    50: '#e29ef7',
    500: '#d172f3',
    950: '#000000',
  },
}
SCSS
$custom: #d172f3;
$custom-light: #e29ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#d172f3",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 243
  },
  "hsl": {
    "h": 284.186,
    "s": 84.314,
    "l": 70
  },
  "oklch": {
    "l": 0.7085,
    "c": 0.20092,
    "h": 316.4
  },
  "luminance": 0.32061
}

Semantic roles & 50–950 ramp

primary
#D172F3
secondary
#D8F2CE
accent
#E1053F
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172F3

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

Preview Lab → · Contrast checker → · Palette generator →

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