#5B2A9A#5B2A9A

#5B2A9A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.171 H 298.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5B2A9A
RGBrgb(91, 42, 154)
HSLhsl(266, 57%, 38%)
HSVhsv(266, 73%, 60%)
CMYKcmyk(40.9%, 72.7%, 0%, 39.6%)
CIE-LABlab(29.94, 45.43, -52.62)
CIE-LCHlch(29.94, 69.52, 310.81°)
OKLaboklab(41.63% 0.082 -0.1503)
OKLCHoklch(41.63% 0.171 298.6)
XYZxyz(10.9736, 6.2130, 31.1867)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2A9A #699A2A
analogous
#2A319A #5B2A9A #932A9A
triadic
#5B2A9A #9A5B2A #2A9A5B
tetradic
#5B2A9A #9A2A31 #699A2A #2A9A93
square
#5B2A9A #9A2A31 #699A2A #2A9A93
split-complementary
#5B2A9A #9A932A #319A2A
monochromatic
#22103A #3F1D6A #5B2A9A #7838C9 #9868D6

Accessibility & contrast

On white

9.36
#5B2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5B2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2A9A
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2A9A#FFFFFF#000000##FFFFFF
##5B2A9A1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#4C465F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2a9a;
/* rgb */ color: rgb(91, 42, 154);
/* oklch */ color: oklch(41.6% 0.171 298.6);
Tailwind
colors: {
  custom: {
    50: '#8f68b9',
    500: '#5b2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #5b2a9a;
$custom-light: #8f68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2a9a",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 266.25,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41629,
    "c": 0.17121,
    "h": 298.6
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#5B2A9A
secondary
#95BC63
accent
#E0479D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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