#5A4E81#5A4E81

#5A4E81 is a mid, moderate violet. Relative luminance 0.092; OKLCH L 45.8% C 0.082 H 293.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#5A4E81
RGBrgb(90, 78, 129)
HSLhsl(254, 25%, 41%)
HSVhsv(254, 40%, 51%)
CMYKcmyk(30.2%, 39.5%, 0%, 49.4%)
CIE-LABlab(36.38, 17.16, -26.99)
CIE-LCHlch(36.38, 31.98, 302.45°)
OKLaboklab(45.83% 0.0331 -0.0753)
OKLCHoklch(45.83% 0.082 293.7)
XYZxyz(10.9023, 9.2072, 21.9674)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E81 #75814E
analogous
#4E5B81 #5A4E81 #734E81
triadic
#5A4E81 #815A4E #4E815A
tetradic
#5A4E81 #814E5B #75814E #4E8173
square
#5A4E81 #814E5B #75814E #4E8173
split-complementary
#5A4E81 #81734E #5B814E
monochromatic
#252035 #3F375B #5A4E81 #7668A4 #998EBB

Accessibility & contrast

On white

7.39
#5A4E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A4E81
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E81#FFFFFF#000000##FFFFFF
##5A4E811.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405683
Deuteranopia (green-blind)
#415580
Tritanopia (blue-blind)
#515761
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a4e81;
/* rgb */ color: rgb(90, 78, 129);
/* oklch */ color: oklch(45.8% 0.082 293.7);
Tailwind
colors: {
  custom: {
    50: '#8a7fa6',
    500: '#5a4e81',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e81;
$custom-light: #8a7fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e81",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 129
  },
  "hsl": {
    "h": 254.118,
    "s": 24.638,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45831,
    "c": 0.08229,
    "h": 293.7
  },
  "luminance": 0.09207
}

Semantic roles & 50–950 ramp

primary
#5A4E81
secondary
#9FA883
accent
#C167AC
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A0F
muted
#7D7C7F

Preview Lab

Preview with #5A4E81

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

Preview Lab → · Contrast checker → · Palette generator →

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