#5B2AAB#5B2AAB

#5B2AAB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.190 H 294.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5B2AAB
RGBrgb(91, 42, 171)
HSLhsl(263, 61%, 42%)
HSVhsv(263, 75%, 67%)
CMYKcmyk(46.8%, 75.4%, 0%, 32.9%)
CIE-LABlab(31.39, 49.93, -60.54)
CIE-LCHlch(31.39, 78.47, 309.51°)
OKLaboklab(43.1% 0.0781 -0.1735)
OKLCHoklch(43.1% 0.19 294.2)
XYZxyz(12.4910, 6.8200, 39.1784)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AAB #7AAB2A
analogous
#2A3AAB #5B2AAB #9C2AAB
triadic
#5B2AAB #AB5B2A #2AAB5B
tetradic
#5B2AAB #AB2A3A #7AAB2A #2AAB9C
square
#5B2AAB #AB2A3A #7AAB2A #2AAB9C
split-complementary
#5B2AAB #AB9C2A #3AAB2A
monochromatic
#271249 #411E7A #5B2AAB #7842D1 #9B73DD

Accessibility & contrast

On white

8.88
#5B2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5B2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AAB
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AAB#FFFFFF#000000##FFFFFF
##5B2AAB1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#434D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2aab;
/* rgb */ color: rgb(91, 42, 171);
/* oklch */ color: oklch(43.1% 0.190 294.2);
Tailwind
colors: {
  custom: {
    50: '#9169c5',
    500: '#5b2aab',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aab;
$custom-light: #9169c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aab",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 262.791,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43101,
    "c": 0.1903,
    "h": 294.2
  },
  "luminance": 0.0682
}

Semantic roles & 50–950 ramp

primary
#5B2AAB
secondary
#A3C46D
accent
#E444A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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