#5B2573#5B2573

#5B2573 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.134 H 313.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5B2573
RGBrgb(91, 37, 115)
HSLhsl(282, 51%, 30%)
HSVhsv(282, 68%, 45%)
CMYKcmyk(20.9%, 67.8%, 0%, 54.9%)
CIE-LABlab(26.11, 38.23, -34.48)
CIE-LCHlch(26.11, 51.48, 317.96°)
OKLaboklab(37.96% 0.0928 -0.097)
OKLCHoklch(37.96% 0.134 313.7)
XYZxyz(8.0699, 4.7853, 16.7149)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2573 #3D7325
analogous
#342573 #5B2573 #732564
triadic
#5B2573 #735B25 #25735B
tetradic
#5B2573 #733425 #3D7325 #256473
square
#5B2573 #733425 #3D7325 #256473
split-complementary
#5B2573 #647325 #257334
monochromatic
#120717 #361645 #5B2573 #8034A1 #A04DC6

Accessibility & contrast

On white

10.73
#5B2573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5B2573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2573
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2573#FFFFFF#000000##FFFFFF
##5B25731.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013B75
Deuteranopia (green-blind)
#213F71
Tritanopia (blue-blind)
#593448
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b2573;
/* rgb */ color: rgb(91, 37, 115);
/* oklch */ color: oklch(38.0% 0.134 313.7);
Tailwind
colors: {
  custom: {
    50: '#8c649c',
    500: '#5b2573',
    950: '#000000',
  },
}
SCSS
$custom: #5b2573;
$custom-light: #8c649c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2573",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 115
  },
  "hsl": {
    "h": 281.538,
    "s": 51.316,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37965,
    "c": 0.13424,
    "h": 313.7
  },
  "luminance": 0.04785
}

Semantic roles & 50–950 ramp

primary
#5B2573
secondary
#69A64E
accent
#DB4D79
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5B2573

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

Preview Lab → · Contrast checker → · Palette generator →

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