#5B1884#5B1884

#5B1884 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.168 H 308.2°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#5B1884
RGBrgb(91, 24, 132)
HSLhsl(277, 69%, 31%)
HSVhsv(277, 82%, 52%)
CMYKcmyk(31.1%, 81.8%, 0%, 48.2%)
CIE-LABlab(25.39, 47.82, -46.42)
CIE-LCHlch(25.39, 66.64, 315.86°)
OKLaboklab(37.86% 0.1039 -0.1319)
OKLCHoklch(37.86% 0.168 308.2)
XYZxyz(8.8050, 4.5435, 22.2385)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1884 #418418
analogous
#251884 #5B1884 #841877
triadic
#5B1884 #845B18 #18845B
tetradic
#5B1884 #842518 #418418 #187784
square
#5B1884 #842518 #418418 #187784
split-complementary
#5B1884 #778418 #188425
monochromatic
#14051C #370F50 #5B1884 #7F21B8 #9E3BDB

Accessibility & contrast

On white

11.00
#5B1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1884
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1884#FFFFFF#000000##FFFFFF
##5B18841.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#54344E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1884;
/* rgb */ color: rgb(91, 24, 132);
/* oklch */ color: oklch(37.9% 0.168 308.2);
Tailwind
colors: {
  custom: {
    50: '#8e5ea9',
    500: '#5b1884',
    950: '#000000',
  },
}
SCSS
$custom: #5b1884;
$custom-light: #8e5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1884",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 277.222,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37856,
    "c": 0.16792,
    "h": 308.2
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#5B1884
secondary
#6DB840
accent
#EC3C7F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1884

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

Preview Lab → · Contrast checker → · Palette generator →

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