#5B3291#5B3291

#5B3291 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.0% C 0.150 H 299.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5B3291
RGBrgb(91, 50, 145)
HSLhsl(266, 49%, 38%)
HSVhsv(266, 66%, 57%)
CMYKcmyk(37.2%, 65.5%, 0%, 43.1%)
CIE-LABlab(30.76, 38.86, -45.79)
CIE-LCHlch(30.76, 60.05, 310.32°)
OKLaboklab(41.99% 0.0745 -0.1302)
OKLCHoklch(41.99% 0.15 299.8)
XYZxyz(10.5646, 6.5496, 27.4902)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3291 #689132
analogous
#323891 #5B3291 #8A3291
triadic
#5B3291 #915B32 #32915B
tetradic
#5B3291 #913238 #689132 #32918A
square
#5B3291 #913238 #689132 #32918A
split-complementary
#5B3291 #918A32 #389132
monochromatic
#221336 #3E2263 #5B3291 #7842BE #9870CE

Accessibility & contrast

On white

9.09
#5B3291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B3291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3291
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3291#FFFFFF#000000##FFFFFF
##5B32911.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#04488F
Tritanopia (blue-blind)
#4F475D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b3291;
/* rgb */ color: rgb(91, 50, 145);
/* oklch */ color: oklch(42.0% 0.150 299.8);
Tailwind
colors: {
  custom: {
    50: '#8e6cb2',
    500: '#5b3291',
    950: '#000000',
  },
}
SCSS
$custom: #5b3291;
$custom-light: #8e6cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3291",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 265.895,
    "s": 48.718,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41993,
    "c": 0.15004,
    "h": 299.8
  },
  "luminance": 0.0655
}

Semantic roles & 50–950 ramp

primary
#5B3291
secondary
#95B569
accent
#D8509D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3291

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

Preview Lab → · Contrast checker → · Palette generator →

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