#5B2AA4#5B2AA4

#5B2AA4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.182 H 295.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5B2AA4
RGBrgb(91, 42, 164)
HSLhsl(264, 59%, 40%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(44.5%, 74.4%, 0%, 35.7%)
CIE-LABlab(30.78, 48.07, -57.32)
CIE-LCHlch(30.78, 74.81, 309.98°)
OKLaboklab(42.48% 0.0798 -0.1641)
OKLCHoklch(42.48% 0.182 295.9)
XYZxyz(11.8414, 6.5601, 35.7571)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AA4 #73A42A
analogous
#2A36A4 #5B2AA4 #982AA4
triadic
#5B2AA4 #A45B2A #2AA45B
tetradic
#5B2AA4 #A42A36 #73A42A #2AA498
square
#5B2AA4 #A42A36 #73A42A #2AA498
split-complementary
#5B2AA4 #A4982A #36A42A
monochromatic
#251143 #401E73 #5B2AA4 #773ECD #9A6EDA

Accessibility & contrast

On white

9.08
#5B2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AA4
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AA4#FFFFFF#000000##FFFFFF
##5B2AA41.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#474A65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2aa4;
/* rgb */ color: rgb(91, 42, 164);
/* oklch */ color: oklch(42.5% 0.182 295.9);
Tailwind
colors: {
  custom: {
    50: '#9068c0',
    500: '#5b2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aa4;
$custom-light: #9068c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aa4",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 264.098,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42484,
    "c": 0.18247,
    "h": 295.9
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#5B2AA4
secondary
#9EC169
accent
#E245A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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