#5B1AA0#5B1AA0

#5B1AA0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.194 H 298.9°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5B1AA0
RGBrgb(91, 26, 160)
HSLhsl(269, 72%, 36%)
HSVhsv(269, 84%, 63%)
CMYKcmyk(43.1%, 83.8%, 0%, 37.3%)
CIE-LABlab(28.12, 53.71, -59.27)
CIE-LCHlch(28.12, 79.98, 312.18°)
OKLaboklab(40.51% 0.0937 -0.1697)
OKLCHoklch(40.51% 0.194 298.9)
XYZxyz(11.0273, 5.5008, 33.7317)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1AA0 #5FA01A
analogous
#1A1CA0 #5B1AA0 #9E1AA0
triadic
#5B1AA0 #A05B1A #1AA05B
tetradic
#5B1AA0 #A01A1C #5FA01A #1AA09E
square
#5B1AA0 #A01A1C #5FA01A #1AA09E
split-complementary
#5B1AA0 #A09E1A #1CA01A
monochromatic
#1F0937 #3D116B #5B1AA0 #7923D5 #9852E3

Accessibility & contrast

On white

10.00
#5B1AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5B1AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1AA0
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1AA0#FFFFFF#000000##FFFFFF
##5B1AA01.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#4A415F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b1aa0;
/* rgb */ color: rgb(91, 26, 160);
/* oklch */ color: oklch(40.5% 0.194 298.9);
Tailwind
colors: {
  custom: {
    50: '#9161bd',
    500: '#5b1aa0',
    950: '#000000',
  },
}
SCSS
$custom: #5b1aa0;
$custom-light: #9161bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1aa0",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 269.104,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40512,
    "c": 0.19385,
    "h": 298.9
  },
  "luminance": 0.05501
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B1AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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