#5B1081#5B1081

#5B1081 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.172 H 310.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#5B1081
RGBrgb(91, 16, 129)
HSLhsl(280, 78%, 28%)
HSVhsv(280, 88%, 51%)
CMYKcmyk(29.5%, 87.6%, 0%, 49.4%)
CIE-LABlab(24.26, 49.73, -46.37)
CIE-LCHlch(24.26, 68.00, 317.00°)
OKLaboklab(36.99% 0.1107 -0.1318)
OKLCHoklch(36.99% 0.172 310)
XYZxyz(8.4613, 4.1799, 21.1257)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1081 #368110
analogous
#221081 #5B1081 #81106E
triadic
#5B1081 #815B10 #10815B
tetradic
#5B1081 #812210 #368110 #106E81
square
#5B1081 #812210 #368110 #106E81
split-complementary
#5B1081 #6E8110 #108122
monochromatic
#13031B #35094B #5B1081 #8117B7 #A527E4

Accessibility & contrast

On white

11.44
#5B1081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5B1081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1081
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1081#FFFFFF#000000##FFFFFF
##5B10811.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#55304B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1081;
/* rgb */ color: rgb(91, 16, 129);
/* oklch */ color: oklch(37.0% 0.172 310.0);
Tailwind
colors: {
  custom: {
    50: '#8e5ba6',
    500: '#5b1081',
    950: '#000000',
  },
}
SCSS
$custom: #5b1081;
$custom-light: #8e5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1081",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 279.823,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36987,
    "c": 0.17206,
    "h": 310
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#5B1081
secondary
#61B736
accent
#F43374
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B1081

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

Preview Lab → · Contrast checker → · Palette generator →

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