#5B1B89#5B1B89

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

Color values

HEX#5B1B89
RGBrgb(91, 27, 137)
HSLhsl(275, 67%, 32%)
HSVhsv(275, 80%, 54%)
CMYKcmyk(33.6%, 80.3%, 0%, 46.3%)
CIE-LABlab(26.20, 47.85, -48.23)
CIE-LCHlch(26.20, 67.94, 314.77°)
OKLaboklab(38.55% 0.1 -0.1373)
OKLCHoklch(38.55% 0.17 306.1)
XYZxyz(9.2207, 4.8142, 24.1055)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B89 #49891B
analogous
#241B89 #5B1B89 #891B80
triadic
#5B1B89 #895B1B #1B895B
tetradic
#5B1B89 #89241B #49891B #1B8089
square
#5B1B89 #89241B #49891B #1B8089
split-complementary
#5B1B89 #80891B #1B8924
monochromatic
#170723 #391156 #5B1B89 #7D25BC #9B44DA

Accessibility & contrast

On white

10.70
#5B1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1B89
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B89#FFFFFF#000000##FFFFFF
##5B1B891.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1b89;
/* rgb */ color: rgb(91, 27, 137);
/* oklch */ color: oklch(38.6% 0.170 306.1);
Tailwind
colors: {
  custom: {
    50: '#8e60ac',
    500: '#5b1b89',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b89;
$custom-light: #8e60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b89",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 274.909,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3855,
    "c": 0.16987,
    "h": 306.1
  },
  "luminance": 0.04814
}

Semantic roles & 50–950 ramp

primary
#5B1B89
secondary
#76BC44
accent
#EA3E86
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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