#5B1E83#5B1E83

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

Color values

HEX#5B1E83
RGBrgb(91, 30, 131)
HSLhsl(276, 63%, 32%)
HSVhsv(276, 77%, 51%)
CMYKcmyk(30.5%, 77.1%, 0%, 48.6%)
CIE-LABlab(26.13, 45.23, -44.59)
CIE-LCHlch(26.13, 63.51, 315.41°)
OKLaboklab(38.35% 0.0987 -0.1266)
OKLCHoklch(38.35% 0.161 307.9)
XYZxyz(8.8745, 4.7915, 21.9257)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E83 #46831E
analogous
#291E83 #5B1E83 #831E79
triadic
#5B1E83 #835B1E #1E835B
tetradic
#5B1E83 #83291E #46831E #1E7983
square
#5B1E83 #83291E #46831E #1E7983
split-complementary
#5B1E83 #79831E #1E8329
monochromatic
#16071F #381351 #5B1E83 #7E29B5 #9C47D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B1E83#FFFFFF#000000##FFFFFF
##5B1E831.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)
#003C86
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#55364F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b1e83;
/* rgb */ color: rgb(91, 30, 131);
/* oklch */ color: oklch(38.4% 0.161 307.9);
Tailwind
colors: {
  custom: {
    50: '#8e61a8',
    500: '#5b1e83',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e83;
$custom-light: #8e61a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e83",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 276.238,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3835,
    "c": 0.16051,
    "h": 307.9
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#5B1E83
secondary
#73B647
accent
#E64283
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1E83

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

Preview Lab → · Contrast checker → · Palette generator →

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