#5D2173#5D2173

#5D2173 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.7% C 0.141 H 315.5°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#5D2173
RGBrgb(93, 33, 115)
HSLhsl(284, 55%, 29%)
HSVhsv(284, 71%, 45%)
CMYKcmyk(19.1%, 71.3%, 0%, 54.9%)
CIE-LABlab(25.72, 40.66, -35.09)
CIE-LCHlch(25.72, 53.71, 319.21°)
OKLaboklab(37.75% 0.1005 -0.0987)
OKLCHoklch(37.75% 0.141 315.5)
XYZxyz(8.1521, 4.6530, 16.6850)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2173 #377321
analogous
#342173 #5D2173 #732160
triadic
#5D2173 #735D21 #21735D
tetradic
#5D2173 #733421 #377321 #216073
square
#5D2173 #733421 #377321 #216073
split-complementary
#5D2173 #607321 #217334
monochromatic
#130718 #371343 #5D2173 #832FA3 #A645CA

Accessibility & contrast

On white

10.88
#5D2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2173
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2173#FFFFFF#000000##FFFFFF
##5D21731.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#203F71
Tritanopia (blue-blind)
#5B3147
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d2173;
/* rgb */ color: rgb(93, 33, 115);
/* oklch */ color: oklch(37.7% 0.141 315.5);
Tailwind
colors: {
  custom: {
    50: '#8e629c',
    500: '#5d2173',
    950: '#000000',
  },
}
SCSS
$custom: #5d2173;
$custom-light: #8e629c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2173",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 283.902,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37746,
    "c": 0.14084,
    "h": 315.5
  },
  "luminance": 0.04653
}

Semantic roles & 50–950 ramp

primary
#5D2173
secondary
#62A649
accent
#DF4971
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050E
muted
#7D7A7E

Preview Lab

Preview with #5D2173

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

Preview Lab → · Contrast checker → · Palette generator →

#5D2173 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva