#5B1B95#5B1B95

#5B1B95 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.182 H 302.1°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5B1B95
RGBrgb(91, 27, 149)
HSLhsl(271, 69%, 35%)
HSVhsv(271, 82%, 58%)
CMYKcmyk(38.9%, 81.9%, 0%, 41.6%)
CIE-LABlab(27.24, 50.70, -53.98)
CIE-LCHlch(27.24, 74.05, 313.21°)
OKLaboklab(39.59% 0.0966 -0.1542)
OKLCHoklch(39.59% 0.182 302.1)
XYZxyz(10.1298, 5.1779, 28.8937)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B95 #55951B
analogous
#1E1B95 #5B1B95 #951B92
triadic
#5B1B95 #955B1B #1B955B
tetradic
#5B1B95 #951E1B #55951B #1B9295
square
#5B1B95 #951E1B #55951B #1B9295
split-complementary
#5B1B95 #92951B #1B951E
monochromatic
#1C082D #3B1261 #5B1B95 #7B24C9 #994CDF

Accessibility & contrast

On white

10.32
#5B1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5B1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B95
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B95#FFFFFF#000000##FFFFFF
##5B1B951.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#4E3D59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b1b95;
/* rgb */ color: rgb(91, 27, 149);
/* oklch */ color: oklch(39.6% 0.182 302.1);
Tailwind
colors: {
  custom: {
    50: '#9060b5',
    500: '#5b1b95',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b95;
$custom-light: #9060b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b95",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 271.475,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39594,
    "c": 0.18195,
    "h": 302.1
  },
  "luminance": 0.05178
}

Semantic roles & 50–950 ramp

primary
#5B1B95
secondary
#83C14B
accent
#EC3C90
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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