#5C4A8A#5C4A8A

#5C4A8A is a mid, moderate violet. Relative luminance 0.090; OKLCH L 45.7% C 0.103 H 295.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#5C4A8A
RGBrgb(92, 74, 138)
HSLhsl(257, 30%, 42%)
HSVhsv(257, 46%, 54%)
CMYKcmyk(33.3%, 46.4%, 0%, 45.9%)
CIE-LABlab(36.00, 22.80, -33.10)
CIE-LCHlch(36.00, 40.19, 304.56°)
OKLaboklab(45.75% 0.0434 -0.093)
OKLCHoklch(45.75% 0.103 295)
XYZxyz(11.4487, 9.0077, 25.1753)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C4A8A #788A4A
analogous
#4A588A #5C4A8A #7C4A8A
triadic
#5C4A8A #8A5C4A #4A8A5C
tetradic
#5C4A8A #8A4A58 #788A4A #4A8A7C
square
#5C4A8A #8A4A58 #788A4A #4A8A7C
split-complementary
#5C4A8A #8A7C4A #588A4A
monochromatic
#271F3A #413562 #5C4A8A #7965AC #9C8DC2

Accessibility & contrast

On white

7.50
#5C4A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5C4A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C4A8A
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C4A8A#FFFFFF#000000##FFFFFF
##5C4A8A1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36558C
Deuteranopia (green-blind)
#395488
Tritanopia (blue-blind)
#525663
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5c4a8a;
/* rgb */ color: rgb(92, 74, 138);
/* oklch */ color: oklch(45.7% 0.103 295.0);
Tailwind
colors: {
  custom: {
    50: '#8c7dac',
    500: '#5c4a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c4a8a;
$custom-light: #8c7dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c4a8a",
  "rgb": {
    "r": 92,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 256.875,
    "s": 30.189,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45745,
    "c": 0.10264,
    "h": 295
  },
  "luminance": 0.09008
}

Semantic roles & 50–950 ramp

primary
#5C4A8A
secondary
#A1AE82
accent
#C661AA
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0910
muted
#7D7B7F

Preview Lab

Preview with #5C4A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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