#5B2AB5#5B2AB5

#5B2AB5 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.201 H 292.0°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5B2AB5
RGBrgb(91, 42, 181)
HSLhsl(261, 62%, 44%)
HSVhsv(261, 77%, 71%)
CMYKcmyk(49.7%, 76.8%, 0%, 29%)
CIE-LABlab(32.29, 52.59, -65.03)
CIE-LCHlch(32.29, 83.64, 308.96°)
OKLaboklab(44.01% 0.0754 -0.1867)
OKLCHoklch(44.01% 0.201 292)
XYZxyz(13.4805, 7.2158, 44.3896)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AB5 #84B52A
analogous
#2A3EB5 #5B2AB5 #A02AB5
triadic
#5B2AB5 #B55B2A #2AB55B
tetradic
#5B2AB5 #B52A3E #84B52A #2AB5A0
square
#5B2AB5 #B52A3E #84B52A #2AB5A0
split-complementary
#5B2AB5 #B5A02A #3EB52A
monochromatic
#291352 #421E83 #5B2AB5 #7948D4 #9E79E0

Accessibility & contrast

On white

8.60
#5B2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5B2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AB5
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AB5#FFFFFF#000000##FFFFFF
##5B2AB51.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#3D516E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2ab5;
/* rgb */ color: rgb(91, 42, 181);
/* oklch */ color: oklch(44.0% 0.201 292.0);
Tailwind
colors: {
  custom: {
    50: '#9369cc',
    500: '#5b2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ab5;
$custom-light: #9369cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ab5",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 261.151,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44008,
    "c": 0.20137,
    "h": 292
  },
  "luminance": 0.07216
}

Semantic roles & 50–950 ramp

primary
#5B2AB5
secondary
#AAC873
accent
#E542AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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