#5B1A8A#5B1A8A

#5B1A8A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.172 H 305.8°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5B1A8A
RGBrgb(91, 26, 138)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 54%)
CMYKcmyk(34.1%, 81.2%, 0%, 45.9%)
CIE-LABlab(26.15, 48.47, -48.93)
CIE-LCHlch(26.15, 68.87, 314.73°)
OKLaboklab(38.54% 0.1006 -0.1394)
OKLCHoklch(38.54% 0.172 305.8)
XYZxyz(9.2702, 4.7980, 24.4776)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A8A #498A1A
analogous
#231A8A #5B1A8A #8A1A81
triadic
#5B1A8A #8A5B1A #1A8A5B
tetradic
#5B1A8A #8A231A #498A1A #1A818A
square
#5B1A8A #8A231A #498A1A #1A818A
split-complementary
#5B1A8A #818A1A #1A8A23
monochromatic
#170723 #391057 #5B1A8A #7D24BD #9B43DC

Accessibility & contrast

On white

10.72
#5B1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5B1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A8A
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A8A#FFFFFF#000000##FFFFFF
##5B1A8A1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#523852
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b1a8a;
/* rgb */ color: rgb(91, 26, 138);
/* oklch */ color: oklch(38.5% 0.172 305.8);
Tailwind
colors: {
  custom: {
    50: '#8f5fad',
    500: '#5b1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a8a;
$custom-light: #8f5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a8a",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 274.821,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38543,
    "c": 0.17188,
    "h": 305.8
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#5B1A8A
secondary
#76BD43
accent
#EB3D86
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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