#5A4591#5A4591

#5A4591 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.0% C 0.121 H 293.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5A4591
RGBrgb(90, 69, 145)
HSLhsl(257, 36%, 42%)
HSVhsv(257, 52%, 57%)
CMYKcmyk(37.9%, 52.4%, 0%, 43.1%)
CIE-LABlab(34.95, 27.35, -39.06)
CIE-LCHlch(34.95, 47.68, 305.01°)
OKLaboklab(45.05% 0.0486 -0.1105)
OKLCHoklch(45.05% 0.121 293.7)
XYZxyz(11.4541, 8.4740, 27.8147)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4591 #7C9145
analogous
#455691 #5A4591 #804591
triadic
#5A4591 #915A45 #45915A
tetradic
#5A4591 #914556 #7C9145 #459180
square
#5A4591 #914556 #7C9145 #459180
split-complementary
#5A4591 #918045 #569145
monochromatic
#271E3E #403168 #5A4591 #7760B3 #9A89C7

Accessibility & contrast

On white

7.79
#5A4591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A4591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4591
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4591#FFFFFF#000000##FFFFFF
##5A45911.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275394
Deuteranopia (green-blind)
#2B518F
Tritanopia (blue-blind)
#4C5464
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a4591;
/* rgb */ color: rgb(90, 69, 145);
/* oklch */ color: oklch(45.0% 0.121 293.7);
Tailwind
colors: {
  custom: {
    50: '#8c79b2',
    500: '#5a4591',
    950: '#000000',
  },
}
SCSS
$custom: #5a4591;
$custom-light: #8c79b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4591",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 256.579,
    "s": 35.514,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45046,
    "c": 0.12071,
    "h": 293.7
  },
  "luminance": 0.08474
}

Semantic roles & 50–950 ramp

primary
#5A4591
secondary
#A4B280
accent
#CC5CAD
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5A4591

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

Preview Lab → · Contrast checker → · Palette generator →

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