#5A367E#5A367E

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

Color values

HEX#5A367E
RGBrgb(90, 54, 126)
HSLhsl(270, 40%, 35%)
HSVhsv(270, 57%, 49%)
CMYKcmyk(28.6%, 57.1%, 0%, 50.6%)
CIE-LABlab(30.20, 31.26, -34.90)
CIE-LCHlch(30.20, 46.86, 311.85°)
OKLaboklab(41.15% 0.0683 -0.0983)
OKLCHoklch(41.15% 0.12 304.8)
XYZxyz(9.3007, 6.3184, 20.4642)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A367E #5A7E36
analogous
#36367E #5A367E #7E367E
triadic
#5A367E #7E5A36 #367E5A
tetradic
#5A367E #7E3636 #5A7E36 #367E7E
square
#5A367E #7E3636 #5A7E36 #367E7E
split-complementary
#5A367E #7E7E36 #367E36
monochromatic
#1D1128 #3B2453 #5A367E #7948A9 #976EC1

Accessibility & contrast

On white

9.28
#5A367E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A367E
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A367E#FFFFFF#000000##FFFFFF
##5A367E1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4680
Deuteranopia (green-blind)
#29477C
Tritanopia (blue-blind)
#544454
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a367e;
/* rgb */ color: rgb(90, 54, 126);
/* oklch */ color: oklch(41.1% 0.120 304.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ea4',
    500: '#5a367e',
    950: '#000000',
  },
}
SCSS
$custom: #5a367e;
$custom-light: #8b6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a367e",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 126
  },
  "hsl": {
    "h": 270,
    "s": 40,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41145,
    "c": 0.11973,
    "h": 304.8
  },
  "luminance": 0.06318
}

Semantic roles & 50–950 ramp

primary
#5A367E
secondary
#88A967
accent
#D05894
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5A367E

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

Preview Lab → · Contrast checker → · Palette generator →

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