#5B1484#5B1484

#5B1484 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.172 H 308.6°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#5B1484
RGBrgb(91, 20, 132)
HSLhsl(278, 74%, 30%)
HSVhsv(278, 85%, 52%)
CMYKcmyk(31.1%, 84.8%, 0%, 48.2%)
CIE-LABlab(24.92, 49.19, -47.18)
CIE-LCHlch(24.92, 68.16, 316.19°)
OKLaboklab(37.53% 0.107 -0.1342)
OKLCHoklch(37.53% 0.172 308.6)
XYZxyz(8.7285, 4.3906, 22.2130)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1484 #3D8414
analogous
#231484 #5B1484 #841475
triadic
#5B1484 #845B14 #14845B
tetradic
#5B1484 #842314 #3D8414 #147584
square
#5B1484 #842314 #3D8414 #147584
split-complementary
#5B1484 #758414 #148423
monochromatic
#12041B #360C4F #5B1484 #801CB9 #A032E0

Accessibility & contrast

On white

11.18
#5B1484 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5B1484 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1484
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1484#FFFFFF#000000##FFFFFF
##5B14841.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#54324E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1484;
/* rgb */ color: rgb(91, 20, 132);
/* oklch */ color: oklch(37.5% 0.172 308.6);
Tailwind
colors: {
  custom: {
    50: '#8e5ca9',
    500: '#5b1484',
    950: '#000000',
  },
}
SCSS
$custom: #5b1484;
$custom-light: #8e5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1484",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 132
  },
  "hsl": {
    "h": 278.036,
    "s": 73.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37529,
    "c": 0.1716,
    "h": 308.6
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#5B1484
secondary
#69B93B
accent
#F0377B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1484

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

Preview Lab → · Contrast checker → · Palette generator →

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