#5B3399#5B3399

#5B3399 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.158 H 297.2°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5B3399
RGBrgb(91, 51, 153)
HSLhsl(264, 50%, 40%)
HSVhsv(264, 67%, 60%)
CMYKcmyk(40.5%, 66.7%, 0%, 40%)
CIE-LABlab(31.56, 40.47, -49.39)
CIE-LCHlch(31.56, 63.85, 309.34°)
OKLaboklab(42.76% 0.0725 -0.1408)
OKLCHoklch(42.76% 0.158 297.2)
XYZxyz(11.2465, 6.8915, 30.8685)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3399 #719933
analogous
#333E99 #5B3399 #8E3399
triadic
#5B3399 #995B33 #33995B
tetradic
#5B3399 #99333E #719933 #33998E
square
#5B3399 #99333E #719933 #33998E
split-complementary
#5B3399 #998E33 #3E9933
monochromatic
#24143D #40246B #5B3399 #7747C2 #9975D1

Accessibility & contrast

On white

8.83
#5B3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5B3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3399
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3399#FFFFFF#000000##FFFFFF
##5B33991.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#4C4B61
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b3399;
/* rgb */ color: rgb(91, 51, 153);
/* oklch */ color: oklch(42.8% 0.158 297.2);
Tailwind
colors: {
  custom: {
    50: '#8e6db8',
    500: '#5b3399',
    950: '#000000',
  },
}
SCSS
$custom: #5b3399;
$custom-light: #8e6db8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3399",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 263.529,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.42759,
    "c": 0.15839,
    "h": 297.2
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#5B3399
secondary
#9CB96E
accent
#DA4EA3
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3399

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

Preview Lab → · Contrast checker → · Palette generator →

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