#5B1784#5B1784

#5B1784 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.169 H 308.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5B1784
RGBrgb(91, 23, 132)
HSLhsl(277, 70%, 30%)
HSVhsv(277, 83%, 52%)
CMYKcmyk(31.1%, 82.6%, 0%, 48.2%)
CIE-LABlab(25.27, 48.18, -46.62)
CIE-LCHlch(25.27, 67.04, 315.95°)
OKLaboklab(37.77% 0.1047 -0.1325)
OKLCHoklch(37.77% 0.169 308.3)
XYZxyz(8.7848, 4.5030, 22.2317)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1784 #408417
analogous
#241784 #5B1784 #841776
triadic
#5B1784 #845B17 #17845B
tetradic
#5B1784 #842417 #408417 #177684
square
#5B1784 #842417 #408417 #177684
split-complementary
#5B1784 #768417 #178424
monochromatic
#13051C #370E50 #5B1784 #7F20B8 #9F39DC

Accessibility & contrast

On white

11.05
#5B1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1784
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1784#FFFFFF#000000##FFFFFF
##5B17841.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1784;
/* rgb */ color: rgb(91, 23, 132);
/* oklch */ color: oklch(37.8% 0.169 308.3);
Tailwind
colors: {
  custom: {
    50: '#8e5ea9',
    500: '#5b1784',
    950: '#000000',
  },
}
SCSS
$custom: #5b1784;
$custom-light: #8e5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1784",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 277.431,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3777,
    "c": 0.16888,
    "h": 308.3
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#5B1784
secondary
#6CB83F
accent
#ED3B7E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1784

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

Preview Lab → · Contrast checker → · Palette generator →

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