#5B2391#5B2391

#5B2391 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.170 H 302.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#5B2391
RGBrgb(91, 35, 145)
HSLhsl(271, 61%, 35%)
HSVhsv(271, 76%, 57%)
CMYKcmyk(37.2%, 75.9%, 0%, 43.1%)
CIE-LABlab(28.04, 46.43, -50.21)
CIE-LCHlch(28.04, 68.39, 312.76°)
OKLaboklab(40.05% 0.0908 -0.1432)
OKLCHoklch(40.05% 0.17 302.4)
XYZxyz(10.0250, 5.4705, 27.3103)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2391 #599123
analogous
#242391 #5B2391 #912390
triadic
#5B2391 #915B23 #23915B
tetradic
#5B2391 #912423 #599123 #239091
square
#5B2391 #912423 #599123 #239091
split-complementary
#5B2391 #909123 #239124
monochromatic
#1D0B2E #3C1760 #5B2391 #7A2FC2 #9858D7

Accessibility & contrast

On white

10.03
#5B2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2391
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2391#FFFFFF#000000##FFFFFF
##5B23911.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#503F58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2391;
/* rgb */ color: rgb(91, 35, 145);
/* oklch */ color: oklch(40.0% 0.170 302.4);
Tailwind
colors: {
  custom: {
    50: '#8f64b2',
    500: '#5b2391',
    950: '#000000',
  },
}
SCSS
$custom: #5b2391;
$custom-light: #8f64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2391",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 270.545,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40048,
    "c": 0.16951,
    "h": 302.4
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#5B2391
secondary
#87BB55
accent
#E44492
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2391

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

Preview Lab → · Contrast checker → · Palette generator →

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