#5B1B91#5B1B91

#5B1B91 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.178 H 303.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#5B1B91
RGBrgb(91, 27, 145)
HSLhsl(273, 69%, 34%)
HSVhsv(273, 81%, 57%)
CMYKcmyk(37.2%, 81.4%, 0%, 43.1%)
CIE-LABlab(26.88, 49.74, -52.09)
CIE-LCHlch(26.88, 72.02, 313.68°)
OKLaboklab(39.24% 0.0978 -0.1486)
OKLCHoklch(39.24% 0.178 303.4)
XYZxyz(9.8159, 5.0523, 27.2406)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B91 #51911B
analogous
#201B91 #5B1B91 #911B8C
triadic
#5B1B91 #915B1B #1B915B
tetradic
#5B1B91 #91201B #51911B #1B8C91
square
#5B1B91 #91201B #51911B #1B8C91
split-complementary
#5B1B91 #8C911B #1B9120
monochromatic
#1A082A #3B115D #5B1B91 #7B25C5 #9949DD

Accessibility & contrast

On white

10.45
#5B1B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5B1B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B91
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B91#FFFFFF#000000##FFFFFF
##5B1B911.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#503B56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b1b91;
/* rgb */ color: rgb(91, 27, 145);
/* oklch */ color: oklch(39.2% 0.178 303.4);
Tailwind
colors: {
  custom: {
    50: '#8f60b2',
    500: '#5b1b91',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b91;
$custom-light: #8f60b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b91",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 145
  },
  "hsl": {
    "h": 272.542,
    "s": 68.605,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39241,
    "c": 0.17792,
    "h": 303.4
  },
  "luminance": 0.05052
}

Semantic roles & 50–950 ramp

primary
#5B1B91
secondary
#7FBF49
accent
#EB3C8C
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1B91

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

Preview Lab → · Contrast checker → · Palette generator →

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