#5B1780#5B1780

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

Color values

HEX#5B1780
RGBrgb(91, 23, 128)
HSLhsl(279, 70%, 30%)
HSVhsv(279, 82%, 50%)
CMYKcmyk(28.9%, 82%, 0%, 49.8%)
CIE-LABlab(24.94, 47.28, -44.63)
CIE-LCHlch(24.94, 65.02, 316.65°)
OKLaboklab(37.44% 0.1057 -0.1267)
OKLCHoklch(37.44% 0.165 309.8)
XYZxyz(8.5163, 4.3956, 20.8177)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1780 #3C8017
analogous
#271780 #5B1780 #801771
triadic
#5B1780 #805B17 #17805B
tetradic
#5B1780 #802717 #3C8017 #177180
square
#5B1780 #802717 #3C8017 #177180
split-complementary
#5B1780 #718017 #178027
monochromatic
#12051A #360E4C #5B1780 #8020B4 #A136DB

Accessibility & contrast

On white

11.18
#5B1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5B1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1780
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1780#FFFFFF#000000##FFFFFF
##5B17801.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1780;
/* rgb */ color: rgb(91, 23, 128);
/* oklch */ color: oklch(37.4% 0.165 309.8);
Tailwind
colors: {
  custom: {
    50: '#8e5da6',
    500: '#5b1780',
    950: '#000000',
  },
}
SCSS
$custom: #5b1780;
$custom-light: #8e5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1780",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 278.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37436,
    "c": 0.16501,
    "h": 309.8
  },
  "luminance": 0.04395
}

Semantic roles & 50–950 ramp

primary
#5B1780
secondary
#68B43E
accent
#EC3B7A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1780

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

Preview Lab → · Contrast checker → · Palette generator →

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