#D173FB#D173FB

#D173FB is a light, highly saturated purple. Relative luminance 0.328; OKLCH L 71.4% C 0.208 H 314.3°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#D173FB
RGBrgb(209, 115, 251)
HSLhsl(281, 94%, 72%)
HSVhsv(281, 54%, 98%)
CMYKcmyk(16.7%, 54.2%, 0%, 1.6%)
CIE-LABlab(63.98, 58.42, -53.17)
CIE-LCHlch(63.98, 78.99, 317.69°)
OKLaboklab(71.41% 0.1449 -0.1486)
OKLCHoklch(71.41% 0.208 314.3)
XYZxyz(49.8350, 32.7832, 94.9507)
Luminance0.3278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D173FB #9DFB73
analogous
#8D73FB #D173FB #FB73E1
triadic
#D173FB #FBD173 #73FBD1
tetradic
#D173FB #FB8D73 #9DFB73 #73E1FB
square
#D173FB #FB8D73 #9DFB73 #73E1FB
split-complementary
#D173FB #E1FB73 #73FB8D
monochromatic
#A607ED #BD38F9 #D173FB #E5AFFD #F5E1FE

Accessibility & contrast

On white

2.78
#D173FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#D173FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D173FB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D173FB#FFFFFF#000000##000000
##D173FB1.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5096FF
Deuteranopia (green-blind)
#709EF8
Tritanopia (blue-blind)
#CE89AC
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d173fb;
/* rgb */ color: rgb(209, 115, 251);
/* oklch */ color: oklch(71.4% 0.208 314.3);
Tailwind
colors: {
  custom: {
    50: '#e29ffd',
    500: '#d173fb',
    950: '#000000',
  },
}
SCSS
$custom: #d173fb;
$custom-light: #e29ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#d173fb",
  "rgb": {
    "r": 209,
    "g": 115,
    "b": 251
  },
  "hsl": {
    "h": 281.471,
    "s": 94.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71415,
    "c": 0.20753,
    "h": 314.3
  },
  "luminance": 0.32782
}

Semantic roles & 50–950 ramp

primary
#D173FB
secondary
#DEF6D4
accent
#E60047
background
#FEFAFF
surface
#FCF3FF
border
#D5CDD7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D173FB

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

Preview Lab → · Contrast checker → · Palette generator →

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