#5B2491#5B2491

#5B2491 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.168 H 302.2°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5B2491
RGBrgb(91, 36, 145)
HSLhsl(270, 60%, 35%)
HSVhsv(270, 75%, 57%)
CMYKcmyk(37.2%, 75.2%, 0%, 43.1%)
CIE-LABlab(28.19, 45.98, -49.95)
CIE-LCHlch(28.19, 67.89, 312.63°)
OKLaboklab(40.16% 0.0898 -0.1424)
OKLCHoklch(40.16% 0.168 302.2)
XYZxyz(10.0549, 5.5302, 27.3203)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2491 #5A9124
analogous
#242491 #5B2491 #912490
triadic
#5B2491 #915B24 #24915B
tetradic
#5B2491 #912424 #5A9124 #249091
square
#5B2491 #912424 #5A9124 #249091
split-complementary
#5B2491 #909124 #249124
monochromatic
#1D0C2F #3C1860 #5B2491 #7A30C2 #9859D6

Accessibility & contrast

On white

9.97
#5B2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5B2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2491
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2491#FFFFFF#000000##FFFFFF
##5B24911.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#503F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2491;
/* rgb */ color: rgb(91, 36, 145);
/* oklch */ color: oklch(40.2% 0.168 302.2);
Tailwind
colors: {
  custom: {
    50: '#8f64b2',
    500: '#5b2491',
    950: '#000000',
  },
}
SCSS
$custom: #5b2491;
$custom-light: #8f64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2491",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 270.275,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40161,
    "c": 0.16836,
    "h": 302.2
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#5B2491
secondary
#88BA56
accent
#E34493
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2491

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

Preview Lab → · Contrast checker → · Palette generator →

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