#5B2572#5B2572

#5B2572 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 37.9% C 0.133 H 314.2°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5B2572
RGBrgb(91, 37, 114)
HSLhsl(282, 51%, 30%)
HSVhsv(282, 68%, 45%)
CMYKcmyk(20.2%, 67.5%, 0%, 55.3%)
CIE-LABlab(26.05, 38.00, -33.95)
CIE-LCHlch(26.05, 50.96, 318.23°)
OKLaboklab(37.89% 0.0929 -0.0954)
OKLCHoklch(37.89% 0.133 314.2)
XYZxyz(8.0127, 4.7624, 16.4135)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2572 #3C7225
analogous
#352572 #5B2572 #722563
triadic
#5B2572 #725B25 #25725B
tetradic
#5B2572 #723525 #3C7225 #256372
square
#5B2572 #723525 #3C7225 #256372
split-complementary
#5B2572 #637225 #257235
monochromatic
#120717 #361644 #5B2572 #8034A0 #A14CC5

Accessibility & contrast

On white

10.76
#5B2572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B2572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2572
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2572#FFFFFF#000000##FFFFFF
##5B25721.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033B74
Deuteranopia (green-blind)
#223F70
Tritanopia (blue-blind)
#593448
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b2572;
/* rgb */ color: rgb(91, 37, 114);
/* oklch */ color: oklch(37.9% 0.133 314.2);
Tailwind
colors: {
  custom: {
    50: '#8c649b',
    500: '#5b2572',
    950: '#000000',
  },
}
SCSS
$custom: #5b2572;
$custom-light: #8c649b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2572",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 282.078,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37894,
    "c": 0.13315,
    "h": 314.2
  },
  "luminance": 0.04762
}

Semantic roles & 50–950 ramp

primary
#5B2572
secondary
#68A54E
accent
#DA4D77
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B2572

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

Preview Lab → · Contrast checker → · Palette generator →

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