#5A3C8A#5A3C8A

#5A3C8A is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.0% C 0.126 H 298.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5A3C8A
RGBrgb(90, 60, 138)
HSLhsl(263, 39%, 39%)
HSVhsv(263, 57%, 54%)
CMYKcmyk(34.8%, 56.5%, 0%, 45.9%)
CIE-LABlab(32.35, 30.90, -38.93)
CIE-LCHlch(32.35, 49.70, 308.44°)
OKLaboklab(42.97% 0.0604 -0.1101)
OKLCHoklch(42.97% 0.126 298.8)
XYZxyz(10.4186, 7.2402, 24.8884)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3C8A #6C8A3C
analogous
#3C458A #5A3C8A #813C8A
triadic
#5A3C8A #8A5A3C #3C8A5A
tetradic
#5A3C8A #8A3C45 #6C8A3C #3C8A81
square
#5A3C8A #8A3C45 #6C8A3C #3C8A81
split-complementary
#5A3C8A #8A813C #458A3C
monochromatic
#221735 #3E295F #5A3C8A #7650B3 #987BC6

Accessibility & contrast

On white

8.58
#5A3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3C8A
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3C8A#FFFFFF#000000##FFFFFF
##5A3C8A1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4C8D
Deuteranopia (green-blind)
#254B88
Tritanopia (blue-blind)
#504C5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a3c8a;
/* rgb */ color: rgb(90, 60, 138);
/* oklch */ color: oklch(43.0% 0.126 298.8);
Tailwind
colors: {
  custom: {
    50: '#8c73ad',
    500: '#5a3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a3c8a;
$custom-light: #8c73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3c8a",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 263.077,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42973,
    "c": 0.12563,
    "h": 298.8
  },
  "luminance": 0.0724
}

Semantic roles & 50–950 ramp

primary
#5A3C8A
secondary
#98AF73
accent
#CF59A2
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5A3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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