#5B1480#5B1480

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

Color values

HEX#5B1480
RGBrgb(91, 20, 128)
HSLhsl(279, 73%, 29%)
HSVhsv(279, 84%, 50%)
CMYKcmyk(28.9%, 84.4%, 0%, 49.8%)
CIE-LABlab(24.59, 48.30, -45.21)
CIE-LCHlch(24.59, 66.16, 316.90°)
OKLaboklab(37.19% 0.1081 -0.1284)
OKLCHoklch(37.19% 0.168 310.1)
XYZxyz(8.4600, 4.2832, 20.7990)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1480 #398014
analogous
#251480 #5B1480 #80146F
triadic
#5B1480 #805B14 #14805B
tetradic
#5B1480 #802514 #398014 #146F80
square
#5B1480 #802514 #398014 #146F80
split-complementary
#5B1480 #6F8014 #148025
monochromatic
#13041A #350C4B #5B1480 #811CB5 #A330DF

Accessibility & contrast

On white

11.31
#5B1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1480
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1480#FFFFFF#000000##FFFFFF
##5B14801.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#56314B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1480;
/* rgb */ color: rgb(91, 20, 128);
/* oklch */ color: oklch(37.2% 0.168 310.1);
Tailwind
colors: {
  custom: {
    50: '#8e5ca6',
    500: '#5b1480',
    950: '#000000',
  },
}
SCSS
$custom: #5b1480;
$custom-light: #8e5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1480",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 279.444,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3719,
    "c": 0.16783,
    "h": 310.1
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#5B1480
secondary
#65B53B
accent
#F03877
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1480

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

Preview Lab → · Contrast checker → · Palette generator →

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