#5B2173#5B2173

#5B2173 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.5% C 0.140 H 314.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5B2173
RGBrgb(91, 33, 115)
HSLhsl(282, 55%, 29%)
HSVhsv(282, 71%, 45%)
CMYKcmyk(20.9%, 71.3%, 0%, 54.9%)
CIE-LABlab(25.41, 40.19, -35.61)
CIE-LCHlch(25.41, 53.69, 318.46°)
OKLaboklab(37.46% 0.0978 -0.1003)
OKLCHoklch(37.46% 0.14 314.3)
XYZxyz(7.9522, 4.5499, 16.6757)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2173 #397321
analogous
#322173 #5B2173 #732162
triadic
#5B2173 #735B21 #21735B
tetradic
#5B2173 #733221 #397321 #216273
square
#5B2173 #733221 #397321 #216273
split-complementary
#5B2173 #627321 #217332
monochromatic
#130718 #351343 #5B2173 #812FA3 #A345CA

Accessibility & contrast

On white

10.99
#5B2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2173
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2173#FFFFFF#000000##FFFFFF
##5B21731.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#1D3E71
Tritanopia (blue-blind)
#593147
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b2173;
/* rgb */ color: rgb(91, 33, 115);
/* oklch */ color: oklch(37.5% 0.140 314.3);
Tailwind
colors: {
  custom: {
    50: '#8c619c',
    500: '#5b2173',
    950: '#000000',
  },
}
SCSS
$custom: #5b2173;
$custom-light: #8c619c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2173",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 282.439,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3746,
    "c": 0.14003,
    "h": 314.3
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#5B2173
secondary
#65A649
accent
#DF4975
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5B2173

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

Preview Lab → · Contrast checker → · Palette generator →

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