#5B1A8B#5B1A8B

#5B1A8B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.173 H 305.5°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5B1A8B
RGBrgb(91, 26, 139)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 55%)
CMYKcmyk(34.5%, 81.3%, 0%, 45.5%)
CIE-LABlab(26.24, 48.70, -49.42)
CIE-LCHlch(26.24, 69.38, 314.58°)
OKLaboklab(38.63% 0.1003 -0.1408)
OKLCHoklch(38.63% 0.173 305.5)
XYZxyz(9.3429, 4.8271, 24.8606)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A8B #4A8B1A
analogous
#221A8B #5B1A8B #8B1A83
triadic
#5B1A8B #8B5B1A #1A8B5B
tetradic
#5B1A8B #8B221A #4A8B1A #1A838B
square
#5B1A8B #8B221A #4A8B1A #1A838B
split-complementary
#5B1A8B #838B1A #1A8B22
monochromatic
#170724 #391057 #5B1A8B #7D24BF #9B43DC

Accessibility & contrast

On white

10.68
#5B1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A8B
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A8B#FFFFFF#000000##FFFFFF
##5B1A8B1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#523853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b1a8b;
/* rgb */ color: rgb(91, 26, 139);
/* oklch */ color: oklch(38.6% 0.173 305.5);
Tailwind
colors: {
  custom: {
    50: '#8f5fae',
    500: '#5b1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a8b;
$custom-light: #8f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a8b",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 274.513,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.17288,
    "h": 305.5
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#5B1A8B
secondary
#77BD44
accent
#EB3C87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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