#5A4E8A#5A4E8A

#5A4E8A is a mid, moderate violet. Relative luminance 0.095; OKLCH L 46.3% C 0.096 H 291.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5A4E8A
RGBrgb(90, 78, 138)
HSLhsl(252, 28%, 42%)
HSVhsv(252, 43%, 54%)
CMYKcmyk(34.8%, 43.5%, 0%, 45.9%)
CIE-LABlab(36.85, 19.69, -31.77)
CIE-LCHlch(36.85, 37.38, 301.79°)
OKLaboklab(46.34% 0.0349 -0.0892)
OKLCHoklch(46.34% 0.096 291.4)
XYZxyz(11.5271, 9.4572, 25.2579)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E8A #7E8A4E
analogous
#4E608A #5A4E8A #784E8A
triadic
#5A4E8A #8A5A4E #4E8A5A
tetradic
#5A4E8A #8A4E60 #7E8A4E #4E8A78
square
#5A4E8A #8A4E60 #7E8A4E #4E8A78
split-complementary
#5A4E8A #8A784E #608A4E
monochromatic
#27223C #413863 #5A4E8A #776AAB #9B91C1

Accessibility & contrast

On white

7.26
#5A4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E8A
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E8A#FFFFFF#000000##FFFFFF
##5A4E8A1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588C
Deuteranopia (green-blind)
#3C5589
Tritanopia (blue-blind)
#4E5965
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a4e8a;
/* rgb */ color: rgb(90, 78, 138);
/* oklch */ color: oklch(46.3% 0.096 291.4);
Tailwind
colors: {
  custom: {
    50: '#8b7fac',
    500: '#5a4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e8a;
$custom-light: #8b7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e8a",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 252,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46342,
    "c": 0.0958,
    "h": 291.4
  },
  "luminance": 0.09457
}

Semantic roles & 50–950 ramp

primary
#5A4E8A
secondary
#A6AE86
accent
#C464B1
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5A4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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