#5B1880#5B1880

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

Color values

HEX#5B1880
RGBrgb(91, 24, 128)
HSLhsl(279, 68%, 30%)
HSVhsv(279, 81%, 50%)
CMYKcmyk(28.9%, 81.3%, 0%, 49.8%)
CIE-LABlab(25.06, 46.92, -44.43)
CIE-LCHlch(25.06, 64.62, 316.56°)
OKLaboklab(37.52% 0.1049 -0.1261)
OKLCHoklch(37.52% 0.164 309.7)
XYZxyz(8.5365, 4.4361, 20.8244)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1880 #3D8018
analogous
#271880 #5B1880 #801871
triadic
#5B1880 #805B18 #18805B
tetradic
#5B1880 #802718 #3D8018 #187180
square
#5B1880 #802718 #3D8018 #187180
split-complementary
#5B1880 #718018 #188027
monochromatic
#12051A #360E4C #5B1880 #8022B4 #A039DA

Accessibility & contrast

On white

11.13
#5B1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1880
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1880#FFFFFF#000000##FFFFFF
##5B18801.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#56324C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1880;
/* rgb */ color: rgb(91, 24, 128);
/* oklch */ color: oklch(37.5% 0.164 309.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ea6',
    500: '#5b1880',
    950: '#000000',
  },
}
SCSS
$custom: #5b1880;
$custom-light: #8e5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1880",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 278.654,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37523,
    "c": 0.16402,
    "h": 309.7
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#5B1880
secondary
#69B440
accent
#EB3D7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1880

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

Preview Lab → · Contrast checker → · Palette generator →

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