#5B1582#5B1582

#5B1582 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.169 H 309.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5B1582
RGBrgb(91, 21, 130)
HSLhsl(279, 72%, 30%)
HSVhsv(279, 84%, 51%)
CMYKcmyk(30%, 83.8%, 0%, 49%)
CIE-LABlab(24.87, 48.42, -46.01)
CIE-LCHlch(24.87, 66.79, 316.46°)
OKLaboklab(37.44% 0.1068 -0.1307)
OKLCHoklch(37.44% 0.169 309.2)
XYZxyz(8.6110, 4.3724, 21.5051)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1582 #3C8215
analogous
#251582 #5B1582 #821573
triadic
#5B1582 #825B15 #15825B
tetradic
#5B1582 #822515 #3C8215 #157382
square
#5B1582 #822515 #3C8215 #157382
split-complementary
#5B1582 #738215 #158225
monochromatic
#12041A #360C4D #5B1582 #801EB7 #A133DE

Accessibility & contrast

On white

11.20
#5B1582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B1582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1582
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1582#FFFFFF#000000##FFFFFF
##5B15821.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#55324D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1582;
/* rgb */ color: rgb(91, 21, 130);
/* oklch */ color: oklch(37.4% 0.169 309.2);
Tailwind
colors: {
  custom: {
    50: '#8e5da7',
    500: '#5b1582',
    950: '#000000',
  },
}
SCSS
$custom: #5b1582;
$custom-light: #8e5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1582",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 278.532,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37437,
    "c": 0.16882,
    "h": 309.2
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#5B1582
secondary
#68B73C
accent
#EF397A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1582

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

Preview Lab → · Contrast checker → · Palette generator →

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