#5B1580#5B1580

#5B1580 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.167 H 310.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5B1580
RGBrgb(91, 21, 128)
HSLhsl(279, 72%, 29%)
HSVhsv(279, 84%, 50%)
CMYKcmyk(28.9%, 83.6%, 0%, 49.8%)
CIE-LABlab(24.70, 47.97, -45.02)
CIE-LCHlch(24.70, 65.79, 316.82°)
OKLaboklab(37.27% 0.1073 -0.1278)
OKLCHoklch(37.27% 0.167 310)
XYZxyz(8.4781, 4.3192, 20.8050)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1580 #3A8015
analogous
#251580 #5B1580 #801570
triadic
#5B1580 #805B15 #15805B
tetradic
#5B1580 #802515 #3A8015 #157080
square
#5B1580 #802515 #3A8015 #157080
split-complementary
#5B1580 #708015 #158025
monochromatic
#13041A #360C4B #5B1580 #801EB5 #A232DD

Accessibility & contrast

On white

11.27
#5B1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5B1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1580
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1580#FFFFFF#000000##FFFFFF
##5B15801.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#56314B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1580;
/* rgb */ color: rgb(91, 21, 128);
/* oklch */ color: oklch(37.3% 0.167 310.0);
Tailwind
colors: {
  custom: {
    50: '#8e5da6',
    500: '#5b1580',
    950: '#000000',
  },
}
SCSS
$custom: #5b1580;
$custom-light: #8e5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1580",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 279.252,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.16692,
    "h": 310
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#5B1580
secondary
#66B53C
accent
#EF3978
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1580

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

Preview Lab → · Contrast checker → · Palette generator →

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