#5B1572#5B1572

#5B1572 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.154 H 315.9°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#5B1572
RGBrgb(91, 21, 114)
HSLhsl(285, 69%, 26%)
HSVhsv(285, 82%, 45%)
CMYKcmyk(20.2%, 81.6%, 0%, 55.3%)
CIE-LABlab(23.59, 44.94, -37.90)
CIE-LCHlch(23.59, 58.79, 319.86°)
OKLaboklab(36.14% 0.1105 -0.1069)
OKLCHoklch(36.14% 0.154 315.9)
XYZxyz(7.6193, 3.9757, 16.2824)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1572 #2C7215
analogous
#2D1572 #5B1572 #72155B
triadic
#5B1572 #725B15 #15725B
tetradic
#5B1572 #722D15 #2C7215 #155B72
square
#5B1572 #722D15 #2C7215 #155B72
split-complementary
#5B1572 #5B7215 #15722D
monochromatic
#15051A #320B3E #5B1572 #841FA6 #AD2AD8

Accessibility & contrast

On white

11.70
#5B1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1572
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1572#FFFFFF#000000##FFFFFF
##5B15721.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#133A70
Tritanopia (blue-blind)
#592A43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1572;
/* rgb */ color: rgb(91, 21, 114);
/* oklch */ color: oklch(36.1% 0.154 315.9);
Tailwind
colors: {
  custom: {
    50: '#8d5c9b',
    500: '#5b1572',
    950: '#000000',
  },
}
SCSS
$custom: #5b1572;
$custom-light: #8d5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1572",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 285.161,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36143,
    "c": 0.1537,
    "h": 315.9
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#5B1572
secondary
#56A83B
accent
#EC3C68
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1572

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

Preview Lab → · Contrast checker → · Palette generator →

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