#D172F7#D172F7

#D172F7 is a light, highly saturated purple. Relative luminance 0.323; OKLCH L 71.1% C 0.205 H 315.4°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#D172F7
RGBrgb(209, 114, 247)
HSLhsl(283, 89%, 71%)
HSVhsv(283, 54%, 97%)
CMYKcmyk(15.4%, 53.8%, 0%, 3.1%)
CIE-LABlab(63.60, 58.10, -51.59)
CIE-LCHlch(63.60, 77.70, 318.40°)
OKLaboklab(71.06% 0.1459 -0.144)
OKLCHoklch(71.06% 0.205 315.4)
XYZxyz(49.0977, 32.3069, 91.6272)
Luminance0.3231 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172F7 #98F772
analogous
#8E72F7 #D172F7 #F772DB
triadic
#D172F7 #F7D172 #72F7D1
tetradic
#D172F7 #F78E72 #98F772 #72DBF7
square
#D172F7 #F78E72 #98F772 #72DBF7
split-complementary
#D172F7 #DBF772 #72F78E
monochromatic
#A50DE2 #BE38F4 #D172F7 #E4ACFA #F6E2FD

Accessibility & contrast

On white

2.81
#D172F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#D172F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172F7
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172F7#FFFFFF#000000##000000
##D172F71.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5294FB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#CF87AA
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d172f7;
/* rgb */ color: rgb(209, 114, 247);
/* oklch */ color: oklch(71.1% 0.205 315.4);
Tailwind
colors: {
  custom: {
    50: '#e29efa',
    500: '#d172f7',
    950: '#000000',
  },
}
SCSS
$custom: #d172f7;
$custom-light: #e29efa;
$custom-dark: #000000;
JSON
{
  "hex": "#d172f7",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 247
  },
  "hsl": {
    "h": 282.857,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71063,
    "c": 0.20496,
    "h": 315.4
  },
  "luminance": 0.32305
}

Semantic roles & 50–950 ramp

primary
#D172F7
secondary
#DBF4D1
accent
#E60042
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172F7

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

Preview Lab → · Contrast checker → · Palette generator →

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