#5B2CAA#5B2CAA

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

Color values

HEX#5B2CAA
RGBrgb(91, 44, 170)
HSLhsl(262, 59%, 42%)
HSVhsv(262, 74%, 67%)
CMYKcmyk(46.5%, 74.1%, 0%, 33.3%)
CIE-LABlab(31.64, 48.71, -59.53)
CIE-LCHlch(31.64, 76.92, 309.29°)
OKLaboklab(43.25% 0.0766 -0.1706)
OKLCHoklch(43.25% 0.187 294.2)
XYZxyz(12.4688, 6.9274, 38.7026)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CAA #7BAA2C
analogous
#2C3CAA #5B2CAA #9A2CAA
triadic
#5B2CAA #AA5B2C #2CAA5B
tetradic
#5B2CAA #AA2C3C #7BAA2C #2CAA9A
square
#5B2CAA #AA2C3C #7BAA2C #2CAA9A
split-complementary
#5B2CAA #AA9A2C #3CAA2C
monochromatic
#271349 #411F79 #5B2CAA #7844CF #9B75DB

Accessibility & contrast

On white

8.80
#5B2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5B2CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CAA
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CAA#FFFFFF#000000##FFFFFF
##5B2CAA1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#444D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2caa;
/* rgb */ color: rgb(91, 44, 170);
/* oklch */ color: oklch(43.2% 0.187 294.2);
Tailwind
colors: {
  custom: {
    50: '#916ac4',
    500: '#5b2caa',
    950: '#000000',
  },
}
SCSS
$custom: #5b2caa;
$custom-light: #916ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2caa",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 262.381,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43249,
    "c": 0.18701,
    "h": 294.2
  },
  "luminance": 0.06928
}

Semantic roles & 50–950 ramp

primary
#5B2CAA
secondary
#A4C36F
accent
#E246A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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