#5B3395#5B3395

#5B3395 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.4% C 0.154 H 298.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5B3395
RGBrgb(91, 51, 149)
HSLhsl(264, 49%, 39%)
HSVhsv(264, 66%, 58%)
CMYKcmyk(38.9%, 65.8%, 0%, 41.6%)
CIE-LABlab(31.26, 39.38, -47.43)
CIE-LCHlch(31.26, 61.65, 309.70°)
OKLaboklab(42.45% 0.0729 -0.1351)
OKLCHoklch(42.45% 0.154 298.4)
XYZxyz(10.9217, 6.7616, 29.1576)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3395 #6D9533
analogous
#333C95 #5B3395 #8C3395
triadic
#5B3395 #955B33 #33955B
tetradic
#5B3395 #95333C #6D9533 #33958C
square
#5B3395 #95333C #6D9533 #33958C
split-complementary
#5B3395 #958C33 #3C9533
monochromatic
#23143A #3F2367 #5B3395 #7746C0 #9973CF

Accessibility & contrast

On white

8.93
#5B3395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B3395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3395
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3395#FFFFFF#000000##FFFFFF
##5B33951.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004993
Tritanopia (blue-blind)
#4D495F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b3395;
/* rgb */ color: rgb(91, 51, 149);
/* oklch */ color: oklch(42.4% 0.154 298.4);
Tailwind
colors: {
  custom: {
    50: '#8e6db5',
    500: '#5b3395',
    950: '#000000',
  },
}
SCSS
$custom: #5b3395;
$custom-light: #8e6db5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3395",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 149
  },
  "hsl": {
    "h": 264.49,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42447,
    "c": 0.15351,
    "h": 298.4
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

primary
#5B3395
secondary
#99B76C
accent
#D94FA1
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3395

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

Preview Lab → · Contrast checker → · Palette generator →

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