#D173ED#D173ED

#D173ED is a light, vivid purple. Relative luminance 0.319; OKLCH L 70.7% C 0.193 H 318.0°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#D173ED
RGBrgb(209, 115, 237)
HSLhsl(286, 77%, 69%)
HSVhsv(286, 51%, 93%)
CMYKcmyk(11.8%, 51.5%, 0%, 7.1%)
CIE-LABlab(63.29, 55.61, -46.55)
CIE-LCHlch(63.29, 72.52, 320.07°)
OKLaboklab(70.68% 0.1437 -0.1293)
OKLCHoklch(70.68% 0.193 318)
XYZxyz(47.7092, 31.9329, 83.7549)
Luminance0.3193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D173ED #8FED73
analogous
#9473ED #D173ED #ED73CC
triadic
#D173ED #EDD173 #73EDD1
tetradic
#D173ED #ED9473 #8FED73 #73CCED
square
#D173ED #ED9473 #8FED73 #73CCED
split-complementary
#D173ED #CCED73 #73ED94
monochromatic
#A31ACB #BF3DE6 #D173ED #E3A9F4 #F5DFFB

Accessibility & contrast

On white

2.84
#D173ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#D173ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D173ED
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D173ED#FFFFFF#000000##000000
##D173ED1.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B93F1
Deuteranopia (green-blind)
#789CEA
Tritanopia (blue-blind)
#D185A6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d173ed;
/* rgb */ color: rgb(209, 115, 237);
/* oklch */ color: oklch(70.7% 0.193 318.0);
Tailwind
colors: {
  custom: {
    50: '#e19ef3',
    500: '#d173ed',
    950: '#000000',
  },
}
SCSS
$custom: #d173ed;
$custom-light: #e19ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#d173ed",
  "rgb": {
    "r": 209,
    "g": 115,
    "b": 237
  },
  "hsl": {
    "h": 286.23,
    "s": 77.215,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70675,
    "c": 0.19334,
    "h": 318
  },
  "luminance": 0.31931
}

Semantic roles & 50–950 ramp

primary
#D173ED
secondary
#D4F0CC
accent
#D90C3B
background
#FEFAFE
surface
#FCF3FD
border
#D5CDD5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D173ED

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

Preview Lab → · Contrast checker → · Palette generator →

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