#5B366E#5B366E

#5B366E is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.3% C 0.100 H 313.2°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5B366E
RGBrgb(91, 54, 110)
HSLhsl(280, 34%, 32%)
HSVhsv(280, 51%, 43%)
CMYKcmyk(17.3%, 50.9%, 0%, 56.9%)
CIE-LABlab(29.38, 27.52, -26.09)
CIE-LCHlch(29.38, 37.92, 316.52°)
OKLaboklab(40.26% 0.0682 -0.0726)
OKLCHoklch(40.26% 0.1 313.2)
XYZxyz(8.4476, 5.9885, 15.4597)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B366E #496E36
analogous
#3F366E #5B366E #6E3665
triadic
#5B366E #6E5B36 #366E5B
tetradic
#5B366E #6E3F36 #496E36 #36656E
square
#5B366E #6E3F36 #496E36 #36656E
split-complementary
#5B366E #656E36 #366E3F
monochromatic
#170E1C #392245 #5B366E #7D4A97 #9B69B5

Accessibility & contrast

On white

9.56
#5B366E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B366E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B366E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B366E#FFFFFF#000000##FFFFFF
##5B366E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4370
Deuteranopia (green-blind)
#34466C
Tritanopia (blue-blind)
#593F4D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b366e;
/* rgb */ color: rgb(91, 54, 110);
/* oklch */ color: oklch(40.3% 0.100 313.2);
Tailwind
colors: {
  custom: {
    50: '#8b6e98',
    500: '#5b366e',
    950: '#000000',
  },
}
SCSS
$custom: #5b366e;
$custom-light: #8b6e98;
$custom-dark: #000000;
JSON
{
  "hex": "#5b366e",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 110
  },
  "hsl": {
    "h": 279.643,
    "s": 34.146,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40261,
    "c": 0.09959,
    "h": 313.2
  },
  "luminance": 0.05988
}

Semantic roles & 50–950 ramp

primary
#5B366E
secondary
#769E62
accent
#CA5E82
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5B366E

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

Preview Lab → · Contrast checker → · Palette generator →

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