#5B1574#5B1574

#5B1574 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.156 H 315.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#5B1574
RGBrgb(91, 21, 116)
HSLhsl(284, 69%, 27%)
HSVhsv(284, 82%, 45%)
CMYKcmyk(21.6%, 81.9%, 0%, 54.5%)
CIE-LABlab(23.74, 45.36, -38.94)
CIE-LCHlch(23.74, 59.78, 319.36°)
OKLaboklab(36.3% 0.1101 -0.1099)
OKLCHoklch(36.3% 0.156 315)
XYZxyz(7.7344, 4.0217, 16.8885)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1574 #2E7415
analogous
#2C1574 #5B1574 #74155E
triadic
#5B1574 #745B15 #15745B
tetradic
#5B1574 #742C15 #2E7415 #155E74
square
#5B1574 #742C15 #2E7415 #155E74
split-complementary
#5B1574 #5E7415 #15742C
monochromatic
#14051A #320C40 #5B1574 #841EA8 #AB2BD9

Accessibility & contrast

On white

11.64
#5B1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1574
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1574#FFFFFF#000000##FFFFFF
##5B15741.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#103A72
Tritanopia (blue-blind)
#592B45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1574;
/* rgb */ color: rgb(91, 21, 116);
/* oklch */ color: oklch(36.3% 0.156 315.0);
Tailwind
colors: {
  custom: {
    50: '#8d5c9d',
    500: '#5b1574',
    950: '#000000',
  },
}
SCSS
$custom: #5b1574;
$custom-light: #8d5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1574",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 284.211,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36298,
    "c": 0.15558,
    "h": 315
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

primary
#5B1574
secondary
#58AA3B
accent
#EC3C6A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1574

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

Preview Lab → · Contrast checker → · Palette generator →

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