#5B1581#5B1581

#5B1581 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.168 H 309.6°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#5B1581
RGBrgb(91, 21, 129)
HSLhsl(279, 72%, 29%)
HSVhsv(279, 84%, 51%)
CMYKcmyk(29.5%, 83.7%, 0%, 49.4%)
CIE-LABlab(24.78, 48.20, -45.52)
CIE-LCHlch(24.78, 66.29, 316.64°)
OKLaboklab(37.35% 0.1071 -0.1293)
OKLCHoklch(37.35% 0.168 309.6)
XYZxyz(8.5442, 4.3456, 21.1533)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1581 #3B8115
analogous
#251581 #5B1581 #811571
triadic
#5B1581 #815B15 #15815B
tetradic
#5B1581 #812515 #3B8115 #157181
square
#5B1581 #812515 #3B8115 #157181
split-complementary
#5B1581 #718115 #158125
monochromatic
#13041A #360C4C #5B1581 #801EB6 #A233DE

Accessibility & contrast

On white

11.24
#5B1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1581
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1581#FFFFFF#000000##FFFFFF
##5B15811.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#55314C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1581;
/* rgb */ color: rgb(91, 21, 129);
/* oklch */ color: oklch(37.4% 0.168 309.6);
Tailwind
colors: {
  custom: {
    50: '#8e5da6',
    500: '#5b1581',
    950: '#000000',
  },
}
SCSS
$custom: #5b1581;
$custom-light: #8e5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1581",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 278.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37353,
    "c": 0.16787,
    "h": 309.6
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#5B1581
secondary
#67B63C
accent
#EF3979
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1581

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

Preview Lab → · Contrast checker → · Palette generator →

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