#5B3797#5B3797

#5B3797 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.2% C 0.150 H 296.9°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5B3797
RGBrgb(91, 55, 151)
HSLhsl(263, 47%, 40%)
HSVhsv(263, 64%, 59%)
CMYKcmyk(39.7%, 63.6%, 0%, 40.8%)
CIE-LABlab(32.24, 37.69, -47.07)
CIE-LCHlch(32.24, 60.30, 308.68°)
OKLaboklab(43.2% 0.068 -0.134)
OKLCHoklch(43.2% 0.15 296.9)
XYZxyz(11.2651, 7.1907, 30.0666)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3797 #739737
analogous
#374397 #5B3797 #8B3797
triadic
#5B3797 #975B37 #37975B
tetradic
#5B3797 #973743 #739737 #37978B
square
#5B3797 #973743 #739737 #37978B
split-complementary
#5B3797 #978B37 #439737
monochromatic
#25163D #40276A #5B3797 #774DBE #9A7ACF

Accessibility & contrast

On white

8.61
#5B3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5B3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3797
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3797#FFFFFF#000000##FFFFFF
##5B37971.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#034B95
Tritanopia (blue-blind)
#4C4C62
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b3797;
/* rgb */ color: rgb(91, 55, 151);
/* oklch */ color: oklch(43.2% 0.150 296.9);
Tailwind
colors: {
  custom: {
    50: '#8e70b6',
    500: '#5b3797',
    950: '#000000',
  },
}
SCSS
$custom: #5b3797;
$custom-light: #8e70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3797",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 262.5,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43202,
    "c": 0.15029,
    "h": 296.9
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#5B3797
secondary
#9EB872
accent
#D652A4
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3797

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

Preview Lab → · Contrast checker → · Palette generator →

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