#5B2BB1#5B2BB1

#5B2BB1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.196 H 292.7°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5B2BB1
RGBrgb(91, 43, 177)
HSLhsl(261, 61%, 43%)
HSVhsv(261, 76%, 69%)
CMYKcmyk(48.6%, 75.7%, 0%, 30.6%)
CIE-LABlab(32.09, 51.06, -62.98)
CIE-LCHlch(32.09, 81.08, 309.03°)
OKLaboklab(43.76% 0.0757 -0.1807)
OKLCHoklch(43.76% 0.196 292.7)
XYZxyz(13.1119, 7.1258, 42.2710)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BB1 #81B12B
analogous
#2B3EB1 #5B2BB1 #9E2BB1
triadic
#5B2BB1 #B15B2B #2BB15B
tetradic
#5B2BB1 #B12B3E #81B12B #2BB19E
square
#5B2BB1 #B12B3E #81B12B #2BB19E
split-complementary
#5B2BB1 #B19E2B #3EB12B
monochromatic
#28134F #421F80 #5B2BB1 #7947D2 #9D78DE

Accessibility & contrast

On white

8.66
#5B2BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5B2BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BB1
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BB1#FFFFFF#000000##FFFFFF
##5B2BB11.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#404F6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2bb1;
/* rgb */ color: rgb(91, 43, 177);
/* oklch */ color: oklch(43.8% 0.196 292.7);
Tailwind
colors: {
  custom: {
    50: '#926ac9',
    500: '#5b2bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bb1;
$custom-light: #926ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bb1",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 261.493,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43756,
    "c": 0.19593,
    "h": 292.7
  },
  "luminance": 0.07126
}

Semantic roles & 50–950 ramp

primary
#5B2BB1
secondary
#A8C672
accent
#E444AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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