#5B1380#5B1380

#5B1380 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.169 H 310.2°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5B1380
RGBrgb(91, 19, 128)
HSLhsl(280, 74%, 29%)
HSVhsv(280, 85%, 50%)
CMYKcmyk(28.9%, 85.2%, 0%, 49.8%)
CIE-LABlab(24.48, 48.62, -45.39)
CIE-LCHlch(24.48, 66.51, 316.97°)
OKLaboklab(37.11% 0.1089 -0.1289)
OKLCHoklch(37.11% 0.169 310.2)
XYZxyz(8.4428, 4.2486, 20.7932)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1380 #388013
analogous
#251380 #5B1380 #80136F
triadic
#5B1380 #805B13 #13805B
tetradic
#5B1380 #802513 #388013 #136F80
square
#5B1380 #802513 #388013 #136F80
split-complementary
#5B1380 #6F8013 #138025
monochromatic
#13041B #350B4B #5B1380 #811BB5 #A32DE0

Accessibility & contrast

On white

11.35
#5B1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5B1380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1380
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1380#FFFFFF#000000##FFFFFF
##5B13801.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1380;
/* rgb */ color: rgb(91, 19, 128);
/* oklch */ color: oklch(37.1% 0.169 310.2);
Tailwind
colors: {
  custom: {
    50: '#8e5ca6',
    500: '#5b1380',
    950: '#000000',
  },
}
SCSS
$custom: #5b1380;
$custom-light: #8e5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1380",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 279.633,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37113,
    "c": 0.16871,
    "h": 310.2
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#5B1380
secondary
#64B539
accent
#F13776
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B1380

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

Preview Lab → · Contrast checker → · Palette generator →

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