#5B349E#5B349E

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

Color values

HEX#5B349E
RGBrgb(91, 52, 158)
HSLhsl(262, 50%, 41%)
HSVhsv(262, 67%, 62%)
CMYKcmyk(42.4%, 67.1%, 0%, 38%)
CIE-LABlab(32.14, 41.30, -51.48)
CIE-LCHlch(32.14, 66.00, 308.74°)
OKLaboklab(43.3% 0.0708 -0.147)
OKLCHoklch(43.3% 0.163 295.7)
XYZxyz(11.7123, 7.1485, 33.1038)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B349E #779E34
analogous
#34429E #5B349E #90349E
triadic
#5B349E #9E5B34 #349E5B
tetradic
#5B349E #9E3442 #779E34 #349E90
square
#5B349E #9E3442 #779E34 #349E90
split-complementary
#5B349E #9E9034 #429E34
monochromatic
#261642 #402570 #5B349E #784BC4 #9A79D3

Accessibility & contrast

On white

8.64
#5B349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5B349E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B349E
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B349E#FFFFFF#000000##FFFFFF
##5B349E1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#4A4D64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b349e;
/* rgb */ color: rgb(91, 52, 158);
/* oklch */ color: oklch(43.3% 0.163 295.7);
Tailwind
colors: {
  custom: {
    50: '#8f6ebb',
    500: '#5b349e',
    950: '#000000',
  },
}
SCSS
$custom: #5b349e;
$custom-light: #8f6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b349e",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 262.075,
    "s": 50.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.433,
    "c": 0.16314,
    "h": 295.7
  },
  "luminance": 0.07149
}

Semantic roles & 50–950 ramp

primary
#5B349E
secondary
#A1BC72
accent
#DA4EA6
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B349E

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

Preview Lab → · Contrast checker → · Palette generator →

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