#5B367B#5B367B

#5B367B is a dark, moderate violet. Relative luminance 0.063; OKLCH L 41.1% C 0.116 H 306.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5B367B
RGBrgb(91, 54, 123)
HSLhsl(272, 39%, 35%)
HSVhsv(272, 56%, 48%)
CMYKcmyk(26%, 56.1%, 0%, 51.8%)
CIE-LABlab(30.14, 30.76, -33.12)
CIE-LCHlch(30.14, 45.20, 312.89°)
OKLaboklab(41.07% 0.0695 -0.0931)
OKLCHoklch(41.07% 0.116 306.8)
XYZxyz(9.2080, 6.2926, 19.4646)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B367B #567B36
analogous
#39367B #5B367B #7B3679
triadic
#5B367B #7B5B36 #367B5B
tetradic
#5B367B #7B3936 #567B36 #36797B
square
#5B367B #7B3936 #567B36 #36797B
split-complementary
#5B367B #797B36 #367B39
monochromatic
#1C1126 #3C2350 #5B367B #7A49A6 #996DBF

Accessibility & contrast

On white

9.30
#5B367B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B367B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B367B
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B367B#FFFFFF#000000##FFFFFF
##5B367B1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467D
Deuteranopia (green-blind)
#2C4779
Tritanopia (blue-blind)
#564353
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b367b;
/* rgb */ color: rgb(91, 54, 123);
/* oklch */ color: oklch(41.1% 0.116 306.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ea1',
    500: '#5b367b',
    950: '#000000',
  },
}
SCSS
$custom: #5b367b;
$custom-light: #8b6ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b367b",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 123
  },
  "hsl": {
    "h": 272.174,
    "s": 38.983,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41066,
    "c": 0.11617,
    "h": 306.8
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#5B367B
secondary
#84A765
accent
#CF5990
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B367B

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

Preview Lab → · Contrast checker → · Palette generator →

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