#5B337B#5B337B

#5B337B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.121 H 307.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5B337B
RGBrgb(91, 51, 123)
HSLhsl(273, 41%, 34%)
HSVhsv(273, 59%, 48%)
CMYKcmyk(26%, 58.5%, 0%, 51.8%)
CIE-LABlab(29.47, 32.53, -34.19)
CIE-LCHlch(29.47, 47.19, 313.57°)
OKLaboklab(40.57% 0.0738 -0.0962)
OKLCHoklch(40.57% 0.121 307.5)
XYZxyz(9.0726, 6.0220, 19.4195)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B337B #537B33
analogous
#37337B #5B337B #7B3377
triadic
#5B337B #7B5B33 #337B5B
tetradic
#5B337B #7B3733 #537B33 #33777B
square
#5B337B #7B3733 #537B33 #33777B
split-complementary
#5B337B #777B33 #337B37
monochromatic
#1B0F24 #3B2150 #5B337B #7B45A6 #9968C0

Accessibility & contrast

On white

9.53
#5B337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B337B
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B337B#FFFFFF#000000##FFFFFF
##5B337B1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#294679
Tritanopia (blue-blind)
#564052
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b337b;
/* rgb */ color: rgb(91, 51, 123);
/* oklch */ color: oklch(40.6% 0.121 307.5);
Tailwind
colors: {
  custom: {
    50: '#8c6ca1',
    500: '#5b337b',
    950: '#000000',
  },
}
SCSS
$custom: #5b337b;
$custom-light: #8c6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b337b",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 273.333,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40572,
    "c": 0.12125,
    "h": 307.5
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#5B337B
secondary
#81A862
accent
#D1578D
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B337B

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

Preview Lab → · Contrast checker → · Palette generator →

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