#5B2AA5#5B2AA5

#5B2AA5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.184 H 295.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B2AA5
RGBrgb(91, 42, 165)
HSLhsl(264, 59%, 41%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(44.8%, 74.5%, 0%, 35.3%)
CIE-LABlab(30.87, 48.33, -57.79)
CIE-LCHlch(30.87, 75.33, 309.91°)
OKLaboklab(42.57% 0.0795 -0.1655)
OKLCHoklch(42.57% 0.184 295.7)
XYZxyz(11.9321, 6.5964, 36.2346)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AA5 #74A52A
analogous
#2A37A5 #5B2AA5 #982AA5
triadic
#5B2AA5 #A55B2A #2AA55B
tetradic
#5B2AA5 #A52A37 #74A52A #2AA598
square
#5B2AA5 #A52A37 #74A52A #2AA598
split-complementary
#5B2AA5 #A5982A #37A52A
monochromatic
#251143 #401E74 #5B2AA5 #773ECE #9A6FDA

Accessibility & contrast

On white

9.05
#5B2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AA5
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AA5#FFFFFF#000000##FFFFFF
##5B2AA51.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#474A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2aa5;
/* rgb */ color: rgb(91, 42, 165);
/* oklch */ color: oklch(42.6% 0.184 295.7);
Tailwind
colors: {
  custom: {
    50: '#9068c1',
    500: '#5b2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aa5;
$custom-light: #9068c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aa5",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 263.902,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42571,
    "c": 0.18359,
    "h": 295.7
  },
  "luminance": 0.06597
}

Semantic roles & 50–950 ramp

primary
#5B2AA5
secondary
#9EC169
accent
#E345A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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