#5B2A8A#5B2A8A

#5B2A8A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.153 H 303.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5B2A8A
RGBrgb(91, 42, 138)
HSLhsl(271, 53%, 35%)
HSVhsv(271, 70%, 54%)
CMYKcmyk(34.1%, 69.6%, 0%, 45.9%)
CIE-LABlab(28.68, 41.29, -44.82)
CIE-LCHlch(28.68, 60.95, 312.65°)
OKLaboklab(40.33% 0.0847 -0.1274)
OKLCHoklch(40.33% 0.153 303.6)
XYZxyz(9.7287, 5.7151, 24.6304)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2A8A #598A2A
analogous
#2B2A8A #5B2A8A #8A2A89
triadic
#5B2A8A #8A5B2A #2A8A5B
tetradic
#5B2A8A #8A2B2A #598A2A #2A898A
square
#5B2A8A #8A2B2A #598A2A #2A898A
split-complementary
#5B2A8A #898A2A #2A8A2B
monochromatic
#1D0D2C #3C1C5B #5B2A8A #7A38B9 #9860CF

Accessibility & contrast

On white

9.80
#5B2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5B2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2A8A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2A8A#FFFFFF#000000##FFFFFF
##5B2A8A1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#014388
Tritanopia (blue-blind)
#524056
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2a8a;
/* rgb */ color: rgb(91, 42, 138);
/* oklch */ color: oklch(40.3% 0.153 303.6);
Tailwind
colors: {
  custom: {
    50: '#8e67ad',
    500: '#5b2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b2a8a;
$custom-light: #8e67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2a8a",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 270.625,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40334,
    "c": 0.15294,
    "h": 303.6
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#5B2A8A
secondary
#87B45B
accent
#DD4B92
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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