#5B339A#5B339A

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

Color values

HEX#5B339A
RGBrgb(91, 51, 154)
HSLhsl(263, 50%, 40%)
HSVhsv(263, 67%, 60%)
CMYKcmyk(40.9%, 66.9%, 0%, 39.6%)
CIE-LABlab(31.63, 40.75, -49.87)
CIE-LCHlch(31.63, 64.40, 309.25°)
OKLaboklab(42.84% 0.0724 -0.1423)
OKLCHoklch(42.84% 0.16 297)
XYZxyz(11.3294, 6.9247, 31.3053)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B339A #729A33
analogous
#333E9A #5B339A #8E339A
triadic
#5B339A #9A5B33 #339A5B
tetradic
#5B339A #9A333E #729A33 #339A8E
square
#5B339A #9A333E #729A33 #339A8E
split-complementary
#5B339A #9A8E33 #3E9A33
monochromatic
#25153E #40246C #5B339A #7748C2 #9976D2

Accessibility & contrast

On white

8.81
#5B339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5B339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B339A
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B339A#FFFFFF#000000##FFFFFF
##5B339A1.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#4B4B62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b339a;
/* rgb */ color: rgb(91, 51, 154);
/* oklch */ color: oklch(42.8% 0.160 297.0);
Tailwind
colors: {
  custom: {
    50: '#8f6db8',
    500: '#5b339a',
    950: '#000000',
  },
}
SCSS
$custom: #5b339a;
$custom-light: #8f6db8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b339a",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 263.301,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42838,
    "c": 0.15961,
    "h": 297
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B339A

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

Preview Lab → · Contrast checker → · Palette generator →

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