#5A4C8A#5A4C8A

#5A4C8A is a mid, moderate violet. Relative luminance 0.092; OKLCH L 45.9% C 0.099 H 292.4°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5A4C8A
RGBrgb(90, 76, 138)
HSLhsl(254, 29%, 42%)
HSVhsv(254, 45%, 54%)
CMYKcmyk(34.8%, 44.9%, 0%, 45.9%)
CIE-LABlab(36.32, 20.96, -32.60)
CIE-LCHlch(36.32, 38.75, 302.73°)
OKLaboklab(45.94% 0.0378 -0.0916)
OKLCHoklch(45.94% 0.099 292.4)
XYZxyz(11.3872, 9.1773, 25.2113)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4C8A #7C8A4C
analogous
#4C5D8A #5A4C8A #794C8A
triadic
#5A4C8A #8A5A4C #4C8A5A
tetradic
#5A4C8A #8A4C5D #7C8A4C #4C8A79
square
#5A4C8A #8A4C5D #7C8A4C #4C8A79
split-complementary
#5A4C8A #8A794C #5D8A4C
monochromatic
#27213B #403663 #5A4C8A #7768AC #9A8FC1

Accessibility & contrast

On white

7.41
#5A4C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A4C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4C8A
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4C8A#FFFFFF#000000##FFFFFF
##5A4C8A1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38568C
Deuteranopia (green-blind)
#3A5488
Tritanopia (blue-blind)
#4F5864
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a4c8a;
/* rgb */ color: rgb(90, 76, 138);
/* oklch */ color: oklch(45.9% 0.099 292.4);
Tailwind
colors: {
  custom: {
    50: '#8b7eac',
    500: '#5a4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a4c8a;
$custom-light: #8b7eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4c8a",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 253.548,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45943,
    "c": 0.09914,
    "h": 292.4
  },
  "luminance": 0.09178
}

Semantic roles & 50–950 ramp

primary
#5A4C8A
secondary
#A4AE84
accent
#C563AF
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5A4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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