#5B2AB3#5B2AB3

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

Color values

HEX#5B2AB3
RGBrgb(91, 42, 179)
HSLhsl(261, 62%, 43%)
HSVhsv(261, 77%, 70%)
CMYKcmyk(49.2%, 76.5%, 0%, 29.8%)
CIE-LABlab(32.11, 52.06, -64.14)
CIE-LCHlch(32.11, 82.61, 309.06°)
OKLaboklab(43.82% 0.0759 -0.1841)
OKLCHoklch(43.82% 0.199 292.4)
XYZxyz(13.2767, 7.1343, 43.3166)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AB3 #82B32A
analogous
#2A3DB3 #5B2AB3 #9F2AB3
triadic
#5B2AB3 #B35B2A #2AB35B
tetradic
#5B2AB3 #B32A3D #82B32A #2AB39F
square
#5B2AB3 #B32A3D #82B32A #2AB39F
split-complementary
#5B2AB3 #B39F2A #3DB32A
monochromatic
#291350 #421E81 #5B2AB3 #7946D4 #9D78DF

Accessibility & contrast

On white

8.65
#5B2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2AB3
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AB3#FFFFFF#000000##FFFFFF
##5B2AB31.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#3F506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2ab3;
/* rgb */ color: rgb(91, 42, 179);
/* oklch */ color: oklch(43.8% 0.199 292.4);
Tailwind
colors: {
  custom: {
    50: '#9269cb',
    500: '#5b2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ab3;
$custom-light: #9269cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ab3",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 261.46,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43824,
    "c": 0.19917,
    "h": 292.4
  },
  "luminance": 0.07135
}

Semantic roles & 50–950 ramp

primary
#5B2AB3
secondary
#A9C772
accent
#E543AB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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