#5B358E#5B358E

#5B358E is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.142 H 300.0°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5B358E
RGBrgb(91, 53, 142)
HSLhsl(266, 46%, 38%)
HSVhsv(266, 63%, 56%)
CMYKcmyk(35.9%, 62.7%, 0%, 44.3%)
CIE-LABlab(31.17, 36.36, -43.28)
CIE-LCHlch(31.17, 56.53, 310.04°)
OKLaboklab(42.22% 0.071 -0.1229)
OKLCHoklch(42.22% 0.142 300)
XYZxyz(10.4688, 6.7233, 26.3321)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B358E #688E35
analogous
#353B8E #5B358E #87358E
triadic
#5B358E #8E5B35 #358E5B
tetradic
#5B358E #8E353B #688E35 #358E87
square
#5B358E #8E353B #688E35 #358E87
split-complementary
#5B358E #8E8735 #3B8E35
monochromatic
#221435 #3E2461 #5B358E #7846BA #9873CB

Accessibility & contrast

On white

8.96
#5B358E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B358E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B358E
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B358E#FFFFFF#000000##FFFFFF
##5B358E1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#15498C
Tritanopia (blue-blind)
#50485C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b358e;
/* rgb */ color: rgb(91, 53, 142);
/* oklch */ color: oklch(42.2% 0.142 300.0);
Tailwind
colors: {
  custom: {
    50: '#8d6eb0',
    500: '#5b358e',
    950: '#000000',
  },
}
SCSS
$custom: #5b358e;
$custom-light: #8d6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b358e",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 142
  },
  "hsl": {
    "h": 265.618,
    "s": 45.641,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42221,
    "c": 0.14192,
    "h": 300
  },
  "luminance": 0.06723
}

Semantic roles & 50–950 ramp

primary
#5B358E
secondary
#95B36C
accent
#D5529D
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5B358E

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

Preview Lab → · Contrast checker → · Palette generator →

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