#5B1381#5B1381

#5B1381 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.170 H 309.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5B1381
RGBrgb(91, 19, 129)
HSLhsl(279, 74%, 29%)
HSVhsv(279, 85%, 51%)
CMYKcmyk(29.5%, 85.3%, 0%, 49.4%)
CIE-LABlab(24.56, 48.84, -45.88)
CIE-LCHlch(24.56, 67.01, 316.79°)
OKLaboklab(37.2% 0.1086 -0.1303)
OKLCHoklch(37.2% 0.17 309.8)
XYZxyz(8.5089, 4.2751, 21.1415)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1381 #398113
analogous
#241381 #5B1381 #811370
triadic
#5B1381 #815B13 #13815B
tetradic
#5B1381 #812413 #398113 #137081
square
#5B1381 #812413 #398113 #137081
split-complementary
#5B1381 #708113 #138124
monochromatic
#13041B #350B4C #5B1381 #811BB6 #A32EE0

Accessibility & contrast

On white

11.32
#5B1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5B1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1381
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1381#FFFFFF#000000##FFFFFF
##5B13811.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#55314C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1381;
/* rgb */ color: rgb(91, 19, 129);
/* oklch */ color: oklch(37.2% 0.170 309.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ca6',
    500: '#5b1381',
    950: '#000000',
  },
}
SCSS
$custom: #5b1381;
$custom-light: #8e5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1381",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 279.273,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37198,
    "c": 0.16964,
    "h": 309.8
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#5B1381
secondary
#65B63A
accent
#F13777
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B1381

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

Preview Lab → · Contrast checker → · Palette generator →

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