#5A366D#5A366D

#5A366D is a dark, moderate violet. Relative luminance 0.059; OKLCH L 40.1% C 0.098 H 312.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5A366D
RGBrgb(90, 54, 109)
HSLhsl(279, 34%, 32%)
HSVhsv(279, 50%, 43%)
CMYKcmyk(17.4%, 50.5%, 0%, 57.3%)
CIE-LABlab(29.20, 26.96, -25.75)
CIE-LCHlch(29.20, 37.28, 316.31°)
OKLaboklab(40.08% 0.0666 -0.0717)
OKLCHoklch(40.08% 0.098 312.9)
XYZxyz(8.2955, 5.9163, 15.1700)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A366D #496D36
analogous
#3F366D #5A366D #6D3665
triadic
#5A366D #6D5A36 #366D5A
tetradic
#5A366D #6D3F36 #496D36 #36656D
square
#5A366D #6D3F36 #496D36 #36656D
split-complementary
#5A366D #656D36 #366D3F
monochromatic
#160D1B #382244 #5A366D #7C4A96 #9A69B5

Accessibility & contrast

On white

9.62
#5A366D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A366D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A366D
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A366D#FFFFFF#000000##FFFFFF
##5A366D1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A436F
Deuteranopia (green-blind)
#34466C
Tritanopia (blue-blind)
#583E4C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a366d;
/* rgb */ color: rgb(90, 54, 109);
/* oklch */ color: oklch(40.1% 0.098 312.9);
Tailwind
colors: {
  custom: {
    50: '#8a6e97',
    500: '#5a366d',
    950: '#000000',
  },
}
SCSS
$custom: #5a366d;
$custom-light: #8a6e97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a366d",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 109
  },
  "hsl": {
    "h": 279.273,
    "s": 33.742,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40078,
    "c": 0.09786,
    "h": 312.9
  },
  "luminance": 0.05916
}

Semantic roles & 50–950 ramp

primary
#5A366D
secondary
#769D61
accent
#CA5E83
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5A366D

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

Preview Lab → · Contrast checker → · Palette generator →

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