#5B348E#5B348E

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

Color values

HEX#5B348E
RGBrgb(91, 52, 142)
HSLhsl(266, 46%, 38%)
HSVhsv(266, 63%, 56%)
CMYKcmyk(35.9%, 63.4%, 0%, 44.3%)
CIE-LABlab(30.96, 36.93, -43.62)
CIE-LCHlch(30.96, 57.16, 310.25°)
OKLaboklab(42.07% 0.0723 -0.1239)
OKLCHoklch(42.07% 0.143 300.3)
XYZxyz(10.4237, 6.6330, 26.3171)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B348E #678E34
analogous
#343A8E #5B348E #88348E
triadic
#5B348E #8E5B34 #348E5B
tetradic
#5B348E #8E343A #678E34 #348E88
square
#5B348E #8E343A #678E34 #348E88
split-complementary
#5B348E #8E8834 #3A8E34
monochromatic
#221334 #3E2461 #5B348E #7844BB #9871CB

Accessibility & contrast

On white

9.03
#5B348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B348E
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B348E#FFFFFF#000000##FFFFFF
##5B348E1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b348e;
/* rgb */ color: rgb(91, 52, 142);
/* oklch */ color: oklch(42.1% 0.143 300.3);
Tailwind
colors: {
  custom: {
    50: '#8d6eb0',
    500: '#5b348e',
    950: '#000000',
  },
}
SCSS
$custom: #5b348e;
$custom-light: #8d6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b348e",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 266,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42067,
    "c": 0.14342,
    "h": 300.3
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#5B348E
secondary
#94B36A
accent
#D6529D
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5B348E

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

Preview Lab → · Contrast checker → · Palette generator →

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