#5B1A89#5B1A89

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

Color values

HEX#5B1A89
RGBrgb(91, 26, 137)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 54%)
CMYKcmyk(33.6%, 81%, 0%, 46.3%)
CIE-LABlab(26.07, 48.23, -48.45)
CIE-LCHlch(26.07, 68.36, 314.87°)
OKLaboklab(38.46% 0.1009 -0.1379)
OKLCHoklch(38.46% 0.171 306.2)
XYZxyz(9.1981, 4.7692, 24.0980)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A89 #48891A
analogous
#241A89 #5B1A89 #891A80
triadic
#5B1A89 #895B1A #1A895B
tetradic
#5B1A89 #89241A #48891A #1A8089
square
#5B1A89 #89241A #48891A #1A8089
split-complementary
#5B1A89 #80891A #1A8924
monochromatic
#170622 #391056 #5B1A89 #7D24BC #9C42DB

Accessibility & contrast

On white

10.75
#5B1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A89
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A89#FFFFFF#000000##FFFFFF
##5B1A891.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#533752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b1a89;
/* rgb */ color: rgb(91, 26, 137);
/* oklch */ color: oklch(38.5% 0.171 306.2);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5b1a89',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a89;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a89",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 275.135,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38458,
    "c": 0.17088,
    "h": 306.2
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#5B1A89
secondary
#75BC43
accent
#EB3D85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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