#5B1AA1#5B1AA1

#5B1AA1 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.6% C 0.195 H 298.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5B1AA1
RGBrgb(91, 26, 161)
HSLhsl(269, 72%, 37%)
HSVhsv(269, 84%, 63%)
CMYKcmyk(43.5%, 83.9%, 0%, 36.9%)
CIE-LABlab(28.21, 53.95, -59.72)
CIE-LCHlch(28.21, 80.48, 312.09°)
OKLaboklab(40.61% 0.0934 -0.171)
OKLCHoklch(40.61% 0.195 298.6)
XYZxyz(11.1151, 5.5360, 34.1942)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1AA1 #60A11A
analogous
#1A1CA1 #5B1AA1 #9F1AA1
triadic
#5B1AA1 #A15B1A #1AA15B
tetradic
#5B1AA1 #A11A1C #60A11A #1AA19F
square
#5B1AA1 #A11A1C #60A11A #1AA19F
split-complementary
#5B1AA1 #A19F1A #1CA11A
monochromatic
#1F0938 #3D116C #5B1AA1 #7923D6 #9852E3

Accessibility & contrast

On white

9.97
#5B1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5B1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1AA1
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1AA1#FFFFFF#000000##FFFFFF
##5B1AA11.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#494260
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b1aa1;
/* rgb */ color: rgb(91, 26, 161);
/* oklch */ color: oklch(40.6% 0.195 298.6);
Tailwind
colors: {
  custom: {
    50: '#9161be',
    500: '#5b1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #5b1aa1;
$custom-light: #9161be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1aa1",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 268.889,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40605,
    "c": 0.19485,
    "h": 298.6
  },
  "luminance": 0.05536
}

Semantic roles & 50–950 ramp

primary
#5B1AA1
secondary
#8EC651
accent
#EF3997
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5B1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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