#5B1980#5B1980

#5B1980 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.163 H 309.6°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5B1980
RGBrgb(91, 25, 128)
HSLhsl(278, 67%, 30%)
HSVhsv(278, 80%, 50%)
CMYKcmyk(28.9%, 80.5%, 0%, 49.8%)
CIE-LABlab(25.19, 46.54, -44.22)
CIE-LCHlch(25.19, 64.20, 316.47°)
OKLaboklab(37.61% 0.104 -0.1255)
OKLCHoklch(37.61% 0.163 309.6)
XYZxyz(8.5575, 4.4781, 20.8314)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1980 #3E8019
analogous
#281980 #5B1980 #801971
triadic
#5B1980 #805B19 #19805B
tetradic
#5B1980 #802819 #3E8019 #197180
square
#5B1980 #802819 #3E8019 #197180
split-complementary
#5B1980 #718019 #198028
monochromatic
#12051A #370F4D #5B1980 #7F23B3 #A03BD9

Accessibility & contrast

On white

11.08
#5B1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1980
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1980#FFFFFF#000000##FFFFFF
##5B19801.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#56334C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1980;
/* rgb */ color: rgb(91, 25, 128);
/* oklch */ color: oklch(37.6% 0.163 309.6);
Tailwind
colors: {
  custom: {
    50: '#8e5ea6',
    500: '#5b1980',
    950: '#000000',
  },
}
SCSS
$custom: #5b1980;
$custom-light: #8e5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1980",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 278.447,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.37614,
    "c": 0.16299,
    "h": 309.6
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#5B1980
secondary
#6AB441
accent
#EA3E7C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1980

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

Preview Lab → · Contrast checker → · Palette generator →

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