#5A367A#5A367A

#5A367A is a dark, moderate violet. Relative luminance 0.062; OKLCH L 40.9% C 0.115 H 306.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5A367A
RGBrgb(90, 54, 122)
HSLhsl(272, 39%, 35%)
HSVhsv(272, 56%, 48%)
CMYKcmyk(26.2%, 55.7%, 0%, 52.2%)
CIE-LABlab(29.95, 30.22, -32.79)
CIE-LCHlch(29.95, 44.59, 312.67°)
OKLaboklab(40.88% 0.0681 -0.0921)
OKLCHoklch(40.88% 0.115 306.4)
XYZxyz(9.0477, 6.2172, 19.1320)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A367A #567A36
analogous
#38367A #5A367A #7A3678
triadic
#5A367A #7A5A36 #367A5A
tetradic
#5A367A #7A3836 #567A36 #36787A
square
#5A367A #7A3836 #567A36 #36787A
split-complementary
#5A367A #787A36 #367A38
monochromatic
#1B1025 #3B2350 #5A367A #7949A4 #986CBE

Accessibility & contrast

On white

9.36
#5A367A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A367A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A367A
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A367A#FFFFFF#000000##FFFFFF
##5A367A1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20457C
Deuteranopia (green-blind)
#2C4778
Tritanopia (blue-blind)
#554252
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a367a;
/* rgb */ color: rgb(90, 54, 122);
/* oklch */ color: oklch(40.9% 0.115 306.4);
Tailwind
colors: {
  custom: {
    50: '#8b6ea1',
    500: '#5a367a',
    950: '#000000',
  },
}
SCSS
$custom: #5a367a;
$custom-light: #8b6ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a367a",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 122
  },
  "hsl": {
    "h": 271.765,
    "s": 38.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40882,
    "c": 0.11456,
    "h": 306.4
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#5A367A
secondary
#84A765
accent
#CF5990
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5A367A

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

Preview Lab → · Contrast checker → · Palette generator →

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