#5A367C#5A367C

#5A367C is a dark, moderate violet. Relative luminance 0.063; OKLCH L 41.0% C 0.117 H 305.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5A367C
RGBrgb(90, 54, 124)
HSLhsl(271, 39%, 35%)
HSVhsv(271, 56%, 49%)
CMYKcmyk(27.4%, 56.5%, 0%, 51.4%)
CIE-LABlab(30.08, 30.74, -33.85)
CIE-LCHlch(30.08, 45.72, 312.24°)
OKLaboklab(41.01% 0.0682 -0.0952)
OKLCHoklch(41.01% 0.117 305.6)
XYZxyz(9.1729, 6.2673, 19.7913)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A367C #587C36
analogous
#37367C #5A367C #7C367B
triadic
#5A367C #7C5A36 #367C5A
tetradic
#5A367C #7C3736 #587C36 #367B7C
square
#5A367C #7C3736 #587C36 #367B7C
split-complementary
#5A367C #7B7C36 #367C37
monochromatic
#1C1127 #3B2351 #5A367C #7949A7 #976DBF

Accessibility & contrast

On white

9.32
#5A367C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5A367C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A367C
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A367C#FFFFFF#000000##FFFFFF
##5A367C1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467E
Deuteranopia (green-blind)
#2A477A
Tritanopia (blue-blind)
#544353
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a367c;
/* rgb */ color: rgb(90, 54, 124);
/* oklch */ color: oklch(41.0% 0.117 305.6);
Tailwind
colors: {
  custom: {
    50: '#8b6ea2',
    500: '#5a367c',
    950: '#000000',
  },
}
SCSS
$custom: #5a367c;
$custom-light: #8b6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a367c",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 124
  },
  "hsl": {
    "h": 270.857,
    "s": 39.326,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41012,
    "c": 0.11714,
    "h": 305.6
  },
  "luminance": 0.06267
}

Semantic roles & 50–950 ramp

primary
#5A367C
secondary
#86A866
accent
#CF5992
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5A367C

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

Preview Lab → · Contrast checker → · Palette generator →

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