#5B2AAC#5B2AAC

#5B2AAC is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.191 H 294.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5B2AAC
RGBrgb(91, 42, 172)
HSLhsl(263, 61%, 42%)
HSVhsv(263, 76%, 67%)
CMYKcmyk(47.1%, 75.6%, 0%, 32.5%)
CIE-LABlab(31.48, 50.19, -60.99)
CIE-LCHlch(31.48, 78.99, 309.45°)
OKLaboklab(43.19% 0.0778 -0.1749)
OKLCHoklch(43.19% 0.191 294)
XYZxyz(12.5867, 6.8583, 39.6823)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AAC #7BAC2A
analogous
#2A3AAC #5B2AAC #9C2AAC
triadic
#5B2AAC #AC5B2A #2AAC5B
tetradic
#5B2AAC #AC2A3A #7BAC2A #2AAC9C
square
#5B2AAC #AC2A3A #7BAC2A #2AAC9C
split-complementary
#5B2AAC #AC9C2A #3AAC2A
monochromatic
#27124A #411E7B #5B2AAC #7842D1 #9B73DD

Accessibility & contrast

On white

8.85
#5B2AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5B2AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AAC
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AAC#FFFFFF#000000##FFFFFF
##5B2AAC1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2aac;
/* rgb */ color: rgb(91, 42, 172);
/* oklch */ color: oklch(43.2% 0.191 294.0);
Tailwind
colors: {
  custom: {
    50: '#9169c6',
    500: '#5b2aac',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aac;
$custom-light: #9169c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aac",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 262.615,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43191,
    "c": 0.19141,
    "h": 294
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#5B2AAC
secondary
#A4C46D
accent
#E444A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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