#5B339F#5B339F

#5B339F is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.166 H 295.7°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5B339F
RGBrgb(91, 51, 159)
HSLhsl(262, 51%, 41%)
HSVhsv(262, 68%, 62%)
CMYKcmyk(42.8%, 67.9%, 0%, 37.6%)
CIE-LABlab(32.02, 42.12, -52.28)
CIE-LCHlch(32.02, 67.14, 308.86°)
OKLaboklab(43.24% 0.0717 -0.1493)
OKLCHoklch(43.24% 0.166 295.7)
XYZxyz(11.7546, 7.0947, 33.5443)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B339F #779F33
analogous
#33419F #5B339F #91339F
triadic
#5B339F #9F5B33 #339F5B
tetradic
#5B339F #9F3341 #779F33 #339F91
square
#5B339F #9F3341 #779F33 #339F91
split-complementary
#5B339F #9F9133 #419F33
monochromatic
#261542 #402471 #5B339F #784AC5 #9A79D4

Accessibility & contrast

On white

8.68
#5B339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5B339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B339F
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B339F#FFFFFF#000000##FFFFFF
##5B339F1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#494D64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b339f;
/* rgb */ color: rgb(91, 51, 159);
/* oklch */ color: oklch(43.2% 0.166 295.7);
Tailwind
colors: {
  custom: {
    50: '#8f6dbc',
    500: '#5b339f',
    950: '#000000',
  },
}
SCSS
$custom: #5b339f;
$custom-light: #8f6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b339f",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 262.222,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43237,
    "c": 0.16567,
    "h": 295.7
  },
  "luminance": 0.07095
}

Semantic roles & 50–950 ramp

primary
#5B339F
secondary
#A1BC71
accent
#DB4DA6
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B339F

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

Preview Lab → · Contrast checker → · Palette generator →

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