#D173F2#D173F2

#D173F2 is a light, vivid purple. Relative luminance 0.322; OKLCH L 70.9% C 0.198 H 316.6°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#D173F2
RGBrgb(209, 115, 242)
HSLhsl(284, 83%, 70%)
HSVhsv(284, 52%, 95%)
CMYKcmyk(13.6%, 52.5%, 0%, 5.1%)
CIE-LABlab(63.53, 56.60, -48.93)
CIE-LCHlch(63.53, 74.82, 319.16°)
OKLaboklab(70.94% 0.1442 -0.1362)
OKLCHoklch(70.94% 0.198 316.6)
XYZxyz(48.4499, 32.2292, 87.6559)
Luminance0.3223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D173F2 #94F273
analogous
#9173F2 #D173F2 #F273D4
triadic
#D173F2 #F2D173 #73F2D1
tetradic
#D173F2 #F29173 #94F273 #73D4F2
square
#D173F2 #F29173 #94F273 #73D4F2
split-complementary
#D173F2 #D4F273 #73F291
monochromatic
#A414D7 #BF3BED #D173F2 #E3ABF7 #F6E3FC

Accessibility & contrast

On white

2.82
#D173F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#D173F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D173F2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D173F2#FFFFFF#000000##000000
##D173F21.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5794F6
Deuteranopia (green-blind)
#759DEF
Tritanopia (blue-blind)
#D087A8
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d173f2;
/* rgb */ color: rgb(209, 115, 242);
/* oklch */ color: oklch(70.9% 0.198 316.6);
Tailwind
colors: {
  custom: {
    50: '#e29ff7',
    500: '#d173f2',
    950: '#000000',
  },
}
SCSS
$custom: #d173f2;
$custom-light: #e29ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#d173f2",
  "rgb": {
    "r": 209,
    "g": 115,
    "b": 242
  },
  "hsl": {
    "h": 284.409,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.70935,
    "c": 0.19838,
    "h": 316.6
  },
  "luminance": 0.32228
}

Semantic roles & 50–950 ramp

primary
#D173F2
secondary
#D8F2CF
accent
#DF063F
background
#FEFAFF
surface
#FCF3FF
border
#D5CDD7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D173F2

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

Preview Lab → · Contrast checker → · Palette generator →

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