#5B2AB0#5B2AB0

#5B2AB0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.196 H 293.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5B2AB0
RGBrgb(91, 42, 176)
HSLhsl(262, 61%, 43%)
HSVhsv(262, 76%, 69%)
CMYKcmyk(48.3%, 76.1%, 0%, 31%)
CIE-LABlab(31.84, 51.26, -62.80)
CIE-LCHlch(31.84, 81.06, 309.22°)
OKLaboklab(43.55% 0.0768 -0.1802)
OKLCHoklch(43.55% 0.196 293.1)
XYZxyz(12.9766, 7.0142, 41.7360)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AB0 #7FB02A
analogous
#2A3CB0 #5B2AB0 #9E2AB0
triadic
#5B2AB0 #B05B2A #2AB05B
tetradic
#5B2AB0 #B02A3C #7FB02A #2AB09E
square
#5B2AB0 #B02A3C #7FB02A #2AB09E
split-complementary
#5B2AB0 #B09E2A #3CB02A
monochromatic
#28124D #411E7F #5B2AB0 #7945D3 #9C76DE

Accessibility & contrast

On white

8.74
#5B2AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5B2AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AB0
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AB0#FFFFFF#000000##FFFFFF
##5B2AB01.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#404F6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2ab0;
/* rgb */ color: rgb(91, 42, 176);
/* oklch */ color: oklch(43.6% 0.196 293.1);
Tailwind
colors: {
  custom: {
    50: '#9269c9',
    500: '#5b2ab0',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ab0;
$custom-light: #9269c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ab0",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 261.94,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43551,
    "c": 0.19585,
    "h": 293.1
  },
  "luminance": 0.07015
}

Semantic roles & 50–950 ramp

primary
#5B2AB0
secondary
#A6C670
accent
#E543AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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