#5B2091#5B2091

#5B2091 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.173 H 302.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5B2091
RGBrgb(91, 32, 145)
HSLhsl(271, 64%, 35%)
HSVhsv(271, 78%, 57%)
CMYKcmyk(37.2%, 77.9%, 0%, 43.1%)
CIE-LABlab(27.58, 47.74, -50.95)
CIE-LCHlch(27.58, 69.83, 313.14°)
OKLaboklab(39.73% 0.0936 -0.1453)
OKLCHoklch(39.73% 0.173 302.8)
XYZxyz(9.9405, 5.3015, 27.2822)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2091 #569120
analogous
#222091 #5B2091 #91208F
triadic
#5B2091 #915B20 #20915B
tetradic
#5B2091 #912220 #569120 #208F91
square
#5B2091 #912220 #569120 #208F91
split-complementary
#5B2091 #8F9120 #209122
monochromatic
#1C0A2D #3C155F #5B2091 #7A2BC3 #9952D9

Accessibility & contrast

On white

10.19
#5B2091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B2091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2091
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2091#FFFFFF#000000##FFFFFF
##5B20911.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#503D58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b2091;
/* rgb */ color: rgb(91, 32, 145);
/* oklch */ color: oklch(39.7% 0.173 302.8);
Tailwind
colors: {
  custom: {
    50: '#8f62b2',
    500: '#5b2091',
    950: '#000000',
  },
}
SCSS
$custom: #5b2091;
$custom-light: #8f62b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2091",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 145
  },
  "hsl": {
    "h": 271.327,
    "s": 63.842,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39726,
    "c": 0.17286,
    "h": 302.8
  },
  "luminance": 0.05302
}

Semantic roles & 50–950 ramp

primary
#5B2091
secondary
#84BC51
accent
#E74190
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B2091

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

Preview Lab → · Contrast checker → · Palette generator →

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