#5B2A9B#5B2A9B

#5B2A9B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.172 H 298.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5B2A9B
RGBrgb(91, 42, 155)
HSLhsl(266, 57%, 39%)
HSVhsv(266, 73%, 61%)
CMYKcmyk(41.3%, 72.9%, 0%, 39.2%)
CIE-LABlab(30.03, 45.70, -53.10)
CIE-LCHlch(30.03, 70.05, 310.71°)
OKLaboklab(41.71% 0.0818 -0.1517)
OKLCHoklch(41.71% 0.172 298.3)
XYZxyz(11.0572, 6.2465, 31.6271)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2A9B #6A9B2A
analogous
#2A319B #5B2A9B #932A9B
triadic
#5B2A9B #9B5B2A #2A9B5B
tetradic
#5B2A9B #9B2A31 #6A9B2A #2A9B93
square
#5B2A9B #9B2A31 #6A9B2A #2A9B93
split-complementary
#5B2A9B #9B932A #319B2A
monochromatic
#22103B #3F1D6B #5B2A9B #7839C9 #9869D6

Accessibility & contrast

On white

9.34
#5B2A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5B2A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2A9B
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2A9B#FFFFFF#000000##FFFFFF
##5B2A9B1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#4B4660
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2a9b;
/* rgb */ color: rgb(91, 42, 155);
/* oklch */ color: oklch(41.7% 0.172 298.3);
Tailwind
colors: {
  custom: {
    50: '#8f68b9',
    500: '#5b2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #5b2a9b;
$custom-light: #8f68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2a9b",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 266.018,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41713,
    "c": 0.17233,
    "h": 298.3
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#5B2A9B
secondary
#96BD64
accent
#E1479E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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