#5B1B8D#5B1B8D

#5B1B8D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.174 H 304.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5B1B8D
RGBrgb(91, 27, 141)
HSLhsl(274, 68%, 33%)
HSVhsv(274, 81%, 55%)
CMYKcmyk(35.5%, 80.9%, 0%, 44.7%)
CIE-LABlab(26.54, 48.79, -50.17)
CIE-LCHlch(26.54, 69.99, 314.20°)
OKLaboklab(38.89% 0.099 -0.143)
OKLCHoklch(38.89% 0.174 304.7)
XYZxyz(9.5129, 4.9311, 25.6448)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B8D #4D8D1B
analogous
#221B8D #5B1B8D #8D1B86
triadic
#5B1B8D #8D5B1B #1B8D5B
tetradic
#5B1B8D #8D221B #4D8D1B #1B868D
square
#5B1B8D #8D221B #4D8D1B #1B868D
split-complementary
#5B1B8D #868D1B #1B8D22
monochromatic
#190726 #3A115A #5B1B8D #7C25C0 #9A47DC

Accessibility & contrast

On white

10.57
#5B1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5B1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B8D
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B8D#FFFFFF#000000##FFFFFF
##5B1B8D1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#513954
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1b8d;
/* rgb */ color: rgb(91, 27, 141);
/* oklch */ color: oklch(38.9% 0.174 304.7);
Tailwind
colors: {
  custom: {
    50: '#8f60af',
    500: '#5b1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b8d;
$custom-light: #8f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b8d",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 273.684,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38892,
    "c": 0.1739,
    "h": 304.7
  },
  "luminance": 0.04931
}

Semantic roles & 50–950 ramp

primary
#5B1B8D
secondary
#7BBD46
accent
#EB3D89
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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