#5B2AB6#5B2AB6

#5B2AB6 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.202 H 291.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5B2AB6
RGBrgb(91, 42, 182)
HSLhsl(261, 63%, 44%)
HSVhsv(261, 77%, 71%)
CMYKcmyk(50%, 76.9%, 0%, 28.6%)
CIE-LABlab(32.38, 52.86, -65.48)
CIE-LCHlch(32.38, 84.15, 308.91°)
OKLaboklab(44.1% 0.0751 -0.188)
OKLCHoklch(44.1% 0.202 291.8)
XYZxyz(13.5835, 7.2570, 44.9319)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AB6 #85B62A
analogous
#2A3FB6 #5B2AB6 #A12AB6
triadic
#5B2AB6 #B65B2A #2AB65B
tetradic
#5B2AB6 #B62A3F #85B62A #2AB6A1
square
#5B2AB6 #B62A3F #85B62A #2AB6A1
split-complementary
#5B2AB6 #B6A12A #3FB62A
monochromatic
#291353 #421F84 #5B2AB6 #7A48D5 #9E7AE0

Accessibility & contrast

On white

8.57
#5B2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5B2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AB6
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AB6#FFFFFF#000000##FFFFFF
##5B2AB61.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#3D516F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2ab6;
/* rgb */ color: rgb(91, 42, 182);
/* oklch */ color: oklch(44.1% 0.202 291.8);
Tailwind
colors: {
  custom: {
    50: '#9369cd',
    500: '#5b2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ab6;
$custom-light: #9369cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ab6",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 261,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.441,
    "c": 0.20247,
    "h": 291.8
  },
  "luminance": 0.07257
}

Semantic roles & 50–950 ramp

primary
#5B2AB6
secondary
#ABC873
accent
#E642AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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