#5B358D#5B358D

#5B358D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.1% C 0.141 H 300.3°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5B358D
RGBrgb(91, 53, 141)
HSLhsl(266, 45%, 38%)
HSVhsv(266, 62%, 55%)
CMYKcmyk(35.5%, 62.4%, 0%, 44.7%)
CIE-LABlab(31.10, 36.09, -42.78)
CIE-LCHlch(31.10, 55.97, 310.15°)
OKLaboklab(42.15% 0.0711 -0.1214)
OKLCHoklch(42.15% 0.141 300.3)
XYZxyz(10.3940, 6.6934, 25.9385)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B358D #678D35
analogous
#353B8D #5B358D #87358D
triadic
#5B358D #8D5B35 #358D5B
tetradic
#5B358D #8D353B #678D35 #358D87
square
#5B358D #8D353B #678D35 #358D87
split-complementary
#5B358D #8D8735 #3B8D35
monochromatic
#221434 #3E2461 #5B358D #7846B9 #9872CA

Accessibility & contrast

On white

8.98
#5B358D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B358D
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B358D#FFFFFF#000000##FFFFFF
##5B358D1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#17498B
Tritanopia (blue-blind)
#50485C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b358d;
/* rgb */ color: rgb(91, 53, 141);
/* oklch */ color: oklch(42.1% 0.141 300.3);
Tailwind
colors: {
  custom: {
    50: '#8d6eaf',
    500: '#5b358d',
    950: '#000000',
  },
}
SCSS
$custom: #5b358d;
$custom-light: #8d6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b358d",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 141
  },
  "hsl": {
    "h": 265.909,
    "s": 45.361,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42148,
    "c": 0.14067,
    "h": 300.3
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#5B358D
secondary
#94B26B
accent
#D5539D
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5B358D

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

Preview Lab → · Contrast checker → · Palette generator →

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