#5B2B9A#5B2B9A

#5B2B9A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.170 H 298.4°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5B2B9A
RGBrgb(91, 43, 154)
HSLhsl(266, 56%, 39%)
HSVhsv(266, 72%, 60%)
CMYKcmyk(40.9%, 72.1%, 0%, 39.6%)
CIE-LABlab(30.12, 44.94, -52.34)
CIE-LCHlch(30.12, 68.98, 310.65°)
OKLaboklab(41.75% 0.081 -0.1495)
OKLCHoklch(41.75% 0.17 298.4)
XYZxyz(11.0095, 6.2848, 31.1986)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2B9A #6A9A2B
analogous
#2B329A #5B2B9A #922B9A
triadic
#5B2B9A #9A5B2B #2B9A5B
tetradic
#5B2B9A #9A2B32 #6A9A2B #2B9A92
square
#5B2B9A #9A2B32 #6A9A2B #2B9A92
split-complementary
#5B2B9A #9A922B #329A2B
monochromatic
#22103A #3F1E6A #5B2B9A #783AC8 #986AD5

Accessibility & contrast

On white

9.30
#5B2B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B2B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2B9A
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2B9A#FFFFFF#000000##FFFFFF
##5B2B9A1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#4C465F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2b9a;
/* rgb */ color: rgb(91, 43, 154);
/* oklch */ color: oklch(41.8% 0.170 298.4);
Tailwind
colors: {
  custom: {
    50: '#8f69b9',
    500: '#5b2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #5b2b9a;
$custom-light: #8f69b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2b9a",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 265.946,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41754,
    "c": 0.16999,
    "h": 298.4
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#5B2B9A
secondary
#96BC65
accent
#E0489E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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