#5B1BA1#5B1BA1

#5B1BA1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.194 H 298.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5B1BA1
RGBrgb(91, 27, 161)
HSLhsl(269, 71%, 37%)
HSVhsv(269, 83%, 63%)
CMYKcmyk(43.5%, 83.2%, 0%, 36.9%)
CIE-LABlab(28.33, 53.60, -59.52)
CIE-LCHlch(28.33, 80.10, 312.00°)
OKLaboklab(40.69% 0.0927 -0.1704)
OKLCHoklch(40.69% 0.194 298.5)
XYZxyz(11.1377, 5.5810, 34.2018)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1BA1 #61A11B
analogous
#1B1EA1 #5B1BA1 #9E1BA1
triadic
#5B1BA1 #A15B1B #1BA15B
tetradic
#5B1BA1 #A11B1E #61A11B #1BA19E
square
#5B1BA1 #A11B1E #61A11B #1BA19E
split-complementary
#5B1BA1 #A19E1B #1EA11B
monochromatic
#200938 #3D126D #5B1BA1 #7924D5 #9854E2

Accessibility & contrast

On white

9.92
#5B1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1BA1
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1BA1#FFFFFF#000000##FFFFFF
##5B1BA11.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.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: #5b1ba1;
/* rgb */ color: rgb(91, 27, 161);
/* oklch */ color: oklch(40.7% 0.194 298.5);
Tailwind
colors: {
  custom: {
    50: '#9161be',
    500: '#5b1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #5b1ba1;
$custom-light: #9161be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1ba1",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 268.657,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40688,
    "c": 0.19403,
    "h": 298.5
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#5B1BA1
secondary
#8EC552
accent
#EE3A98
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5B1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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