#5B2ABA#5B2ABA

#5B2ABA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.5% C 0.207 H 290.9°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5B2ABA
RGBrgb(91, 42, 186)
HSLhsl(260, 63%, 45%)
HSVhsv(260, 77%, 73%)
CMYKcmyk(51.1%, 77.4%, 0%, 27.1%)
CIE-LABlab(32.75, 53.93, -67.24)
CIE-LCHlch(32.75, 86.19, 308.73°)
OKLaboklab(44.47% 0.074 -0.1932)
OKLCHoklch(44.47% 0.207 290.9)
XYZxyz(14.0027, 7.4247, 47.1401)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2ABA #89BA2A
analogous
#2A41BA #5B2ABA #A32ABA
triadic
#5B2ABA #BA5B2A #2ABA5B
tetradic
#5B2ABA #BA2A41 #89BA2A #2ABAA3
square
#5B2ABA #BA2A41 #89BA2A #2ABAA3
split-complementary
#5B2ABA #BAA32A #41BA2A
monochromatic
#2A1356 #431F88 #5B2ABA #7A4BD6 #9F7DE2

Accessibility & contrast

On white

8.45
#5B2ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5B2ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2ABA
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2ABA#FFFFFF#000000##FFFFFF
##5B2ABA1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#3A5371
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2aba;
/* rgb */ color: rgb(91, 42, 186);
/* oklch */ color: oklch(44.5% 0.207 290.9);
Tailwind
colors: {
  custom: {
    50: '#936ad0',
    500: '#5b2aba',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aba;
$custom-light: #936ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aba",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 260.417,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44471,
    "c": 0.20687,
    "h": 290.9
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#5B2ABA
secondary
#ADCA76
accent
#E642AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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