#D173F8#D173F8

#D173F8 is a light, highly saturated purple. Relative luminance 0.326; OKLCH L 71.3% C 0.204 H 315.0°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#D173F8
RGBrgb(209, 115, 248)
HSLhsl(282, 90%, 71%)
HSVhsv(282, 54%, 97%)
CMYKcmyk(15.7%, 53.6%, 0%, 2.7%)
CIE-LABlab(63.83, 57.81, -51.76)
CIE-LCHlch(63.83, 77.60, 318.16°)
OKLaboklab(71.25% 0.1447 -0.1445)
OKLCHoklch(71.25% 0.204 315)
XYZxyz(49.3658, 32.5956, 92.4799)
Luminance0.3259 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D173F8 #9AF873
analogous
#8E73F8 #D173F8 #F873DC
triadic
#D173F8 #F8D173 #73F8D1
tetradic
#D173F8 #F88E73 #9AF873 #73DCF8
square
#D173F8 #F88E73 #9AF873 #73DCF8
split-complementary
#D173F8 #DCF873 #73F88E
monochromatic
#A50BE5 #BE39F5 #D173F8 #E4ADFB #F5E2FE

Accessibility & contrast

On white

2.79
#D173F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#D173F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D173F8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D173F8#FFFFFF#000000##000000
##D173F81.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5295FC
Deuteranopia (green-blind)
#729DF5
Tritanopia (blue-blind)
#CE88AB
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d173f8;
/* rgb */ color: rgb(209, 115, 248);
/* oklch */ color: oklch(71.3% 0.204 315.0);
Tailwind
colors: {
  custom: {
    50: '#e29ffb',
    500: '#d173f8',
    950: '#000000',
  },
}
SCSS
$custom: #d173f8;
$custom-light: #e29ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#d173f8",
  "rgb": {
    "r": 209,
    "g": 115,
    "b": 248
  },
  "hsl": {
    "h": 282.406,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71253,
    "c": 0.20447,
    "h": 315
  },
  "luminance": 0.32594
}

Semantic roles & 50–950 ramp

primary
#D173F8
secondary
#DCF5D2
accent
#E60043
background
#FEFAFF
surface
#FCF3FF
border
#D5CDD7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D173F8

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

Preview Lab → · Contrast checker → · Palette generator →

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