#5B3799#5B3799

#5B3799 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.4% C 0.153 H 296.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5B3799
RGBrgb(91, 55, 153)
HSLhsl(262, 47%, 41%)
HSVhsv(262, 64%, 60%)
CMYKcmyk(40.5%, 64.1%, 0%, 40%)
CIE-LABlab(32.38, 38.24, -48.05)
CIE-LCHlch(32.38, 61.41, 308.51°)
OKLaboklab(43.36% 0.0678 -0.1369)
OKLCHoklch(43.36% 0.153 296.4)
XYZxyz(11.4288, 7.2562, 30.9293)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3799 #759937
analogous
#374499 #5B3799 #8C3799
triadic
#5B3799 #995B37 #37995B
tetradic
#5B3799 #993744 #759937 #37998C
square
#5B3799 #993744 #759937 #37998C
split-complementary
#5B3799 #998C37 #449937
monochromatic
#25173F #40276C #5B3799 #784EBF #9A7BD0

Accessibility & contrast

On white

8.57
#5B3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5B3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3799
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3799#FFFFFF#000000##FFFFFF
##5B37991.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#4C4D63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b3799;
/* rgb */ color: rgb(91, 55, 153);
/* oklch */ color: oklch(43.4% 0.153 296.4);
Tailwind
colors: {
  custom: {
    50: '#8e70b8',
    500: '#5b3799',
    950: '#000000',
  },
}
SCSS
$custom: #5b3799;
$custom-light: #8e70b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3799",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 262.041,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43355,
    "c": 0.15281,
    "h": 296.4
  },
  "luminance": 0.07256
}

Semantic roles & 50–950 ramp

primary
#5B3799
secondary
#9FB973
accent
#D751A6
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3799

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

Preview Lab → · Contrast checker → · Palette generator →

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