#D173EB#D173EB

#D173EB is a light, vivid purple. Relative luminance 0.318; OKLCH L 70.6% C 0.191 H 318.6°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#D173EB
RGBrgb(209, 115, 235)
HSLhsl(287, 75%, 69%)
HSVhsv(287, 51%, 92%)
CMYKcmyk(11.1%, 51.1%, 0%, 7.8%)
CIE-LABlab(63.19, 55.22, -45.59)
CIE-LCHlch(63.19, 71.61, 320.45°)
OKLaboklab(70.57% 0.1435 -0.1266)
OKLCHoklch(70.57% 0.191 318.6)
XYZxyz(47.4186, 31.8167, 82.2246)
Luminance0.3181 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D173EB #8DEB73
analogous
#9573EB #D173EB #EB73C9
triadic
#D173EB #EBD173 #73EBD1
tetradic
#D173EB #EB9573 #8DEB73 #73C9EB
square
#D173EB #EB9573 #8DEB73 #73C9EB
split-complementary
#D173EB #C9EB73 #73EB95
monochromatic
#A21CC7 #BF3DE3 #D173EB #E3A9F3 #F4DEFA

Accessibility & contrast

On white

2.85
#D173EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#D173EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D173EB
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D173EB#FFFFFF#000000##000000
##D173EB1.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C93EF
Deuteranopia (green-blind)
#799CE8
Tritanopia (blue-blind)
#D184A5
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d173eb;
/* rgb */ color: rgb(209, 115, 235);
/* oklch */ color: oklch(70.6% 0.191 318.6);
Tailwind
colors: {
  custom: {
    50: '#e19ef2',
    500: '#d173eb',
    950: '#000000',
  },
}
SCSS
$custom: #d173eb;
$custom-light: #e19ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#d173eb",
  "rgb": {
    "r": 209,
    "g": 115,
    "b": 235
  },
  "hsl": {
    "h": 287,
    "s": 75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.70572,
    "c": 0.19133,
    "h": 318.6
  },
  "luminance": 0.31815
}

Semantic roles & 50–950 ramp

primary
#D173EB
secondary
#D3EFCB
accent
#D70E3A
background
#FEFAFE
surface
#FCF3FD
border
#D5CDD5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D173EB

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

Preview Lab → · Contrast checker → · Palette generator →

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