#5B2873#5B2873

#5B2873 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.4% C 0.130 H 313.3°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5B2873
RGBrgb(91, 40, 115)
HSLhsl(281, 48%, 30%)
HSVhsv(281, 65%, 45%)
CMYKcmyk(20.9%, 65.2%, 0%, 54.9%)
CIE-LABlab(26.68, 36.69, -33.58)
CIE-LCHlch(26.68, 49.73, 317.53°)
OKLaboklab(38.37% 0.0889 -0.0944)
OKLCHoklch(38.37% 0.13 313.3)
XYZxyz(8.1672, 4.9798, 16.7473)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2873 #407328
analogous
#352873 #5B2873 #732865
triadic
#5B2873 #735B28 #28735B
tetradic
#5B2873 #733528 #407328 #286573
square
#5B2873 #733528 #407328 #286573
split-complementary
#5B2873 #657328 #287335
monochromatic
#130818 #371846 #5B2873 #7F38A0 #9F52C3

Accessibility & contrast

On white

10.52
#5B2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5B2873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2873
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2873#FFFFFF#000000##FFFFFF
##5B28731.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3C75
Deuteranopia (green-blind)
#244071
Tritanopia (blue-blind)
#593649
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2873;
/* rgb */ color: rgb(91, 40, 115);
/* oklch */ color: oklch(38.4% 0.130 313.3);
Tailwind
colors: {
  custom: {
    50: '#8c659c',
    500: '#5b2873',
    950: '#000000',
  },
}
SCSS
$custom: #5b2873;
$custom-light: #8c659c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2873",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 280.8,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38371,
    "c": 0.12965,
    "h": 313.3
  },
  "luminance": 0.0498
}

Semantic roles & 50–950 ramp

primary
#5B2873
secondary
#6CA552
accent
#D8507B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5B2873

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

Preview Lab → · Contrast checker → · Palette generator →

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