#5B1981#5B1981

#5B1981 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.164 H 309.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5B1981
RGBrgb(91, 25, 129)
HSLhsl(278, 68%, 30%)
HSVhsv(278, 81%, 51%)
CMYKcmyk(29.5%, 80.6%, 0%, 49.4%)
CIE-LABlab(25.27, 46.77, -44.72)
CIE-LCHlch(25.27, 64.71, 316.28°)
OKLaboklab(37.7% 0.1038 -0.127)
OKLCHoklch(37.7% 0.164 309.3)
XYZxyz(8.6237, 4.5046, 21.1798)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1981 #3F8119
analogous
#271981 #5B1981 #811973
triadic
#5B1981 #815B19 #19815B
tetradic
#5B1981 #812719 #3F8119 #197381
square
#5B1981 #812719 #3F8119 #197381
split-complementary
#5B1981 #738119 #198127
monochromatic
#13051A #370F4E #5B1981 #7F23B4 #9F3BD9

Accessibility & contrast

On white

11.05
#5B1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1981
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1981#FFFFFF#000000##FFFFFF
##5B19811.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#55334D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1981;
/* rgb */ color: rgb(91, 25, 129);
/* oklch */ color: oklch(37.7% 0.164 309.3);
Tailwind
colors: {
  custom: {
    50: '#8e5ea6',
    500: '#5b1981',
    950: '#000000',
  },
}
SCSS
$custom: #5b1981;
$custom-light: #8e5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1981",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 278.077,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37696,
    "c": 0.16397,
    "h": 309.3
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#5B1981
secondary
#6BB541
accent
#EA3D7D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1981

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

Preview Lab → · Contrast checker → · Palette generator →

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