#5B359B#5B359B

#5B359B is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.158 H 296.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5B359B
RGBrgb(91, 53, 155)
HSLhsl(262, 49%, 41%)
HSVhsv(262, 66%, 61%)
CMYKcmyk(41.3%, 65.8%, 0%, 39.2%)
CIE-LABlab(32.12, 39.92, -49.70)
CIE-LCHlch(32.12, 63.75, 308.77°)
OKLaboklab(43.21% 0.07 -0.1418)
OKLCHoklch(43.21% 0.158 296.3)
XYZxyz(11.5023, 7.1367, 31.7755)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B359B #759B35
analogous
#35429B #5B359B #8E359B
triadic
#5B359B #9B5B35 #359B5B
tetradic
#5B359B #9B3542 #759B35 #359B8E
square
#5B359B #9B3542 #759B35 #359B8E
split-complementary
#5B359B #9B8E35 #429B35
monochromatic
#251640 #40256D #5B359B #784CC2 #9A79D1

Accessibility & contrast

On white

8.65
#5B359B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B359B
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B359B#FFFFFF#000000##FFFFFF
##5B359B1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#4B4D63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b359b;
/* rgb */ color: rgb(91, 53, 155);
/* oklch */ color: oklch(43.2% 0.158 296.3);
Tailwind
colors: {
  custom: {
    50: '#8f6fb9',
    500: '#5b359b',
    950: '#000000',
  },
}
SCSS
$custom: #5b359b;
$custom-light: #8f6fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b359b",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 155
  },
  "hsl": {
    "h": 262.353,
    "s": 49.038,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43209,
    "c": 0.1581,
    "h": 296.3
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

primary
#5B359B
secondary
#9FBA72
accent
#D94FA5
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B359B

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

Preview Lab → · Contrast checker → · Palette generator →

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