#5B2BAB#5B2BAB

#5B2BAB is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.189 H 294.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5B2BAB
RGBrgb(91, 43, 171)
HSLhsl(263, 60%, 42%)
HSVhsv(263, 75%, 67%)
CMYKcmyk(46.8%, 74.9%, 0%, 32.9%)
CIE-LABlab(31.56, 49.45, -60.27)
CIE-LCHlch(31.56, 77.96, 309.37°)
OKLaboklab(43.22% 0.0772 -0.1728)
OKLCHoklch(43.22% 0.189 294.1)
XYZxyz(12.5269, 6.8918, 39.1904)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BAB #7BAB2B
analogous
#2B3BAB #5B2BAB #9B2BAB
triadic
#5B2BAB #AB5B2B #2BAB5B
tetradic
#5B2BAB #AB2B3B #7BAB2B #2BAB9B
square
#5B2BAB #AB2B3B #7BAB2B #2BAB9B
split-complementary
#5B2BAB #AB9B2B #3BAB2B
monochromatic
#271249 #411F7A #5B2BAB #7843D0 #9B74DC

Accessibility & contrast

On white

8.83
#5B2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5B2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BAB
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BAB#FFFFFF#000000##FFFFFF
##5B2BAB1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#434D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2bab;
/* rgb */ color: rgb(91, 43, 171);
/* oklch */ color: oklch(43.2% 0.189 294.1);
Tailwind
colors: {
  custom: {
    50: '#9169c5',
    500: '#5b2bab',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bab;
$custom-light: #9169c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bab",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 262.5,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43218,
    "c": 0.18922,
    "h": 294.1
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#5B2BAB
secondary
#A4C46E
accent
#E345A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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