#5A4E71#5A4E71

#5A4E71 is a mid, muted violet. Relative luminance 0.088; OKLCH L 45.0% C 0.058 H 299.8°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5A4E71
RGBrgb(90, 78, 113)
HSLhsl(261, 18%, 37%)
HSVhsv(261, 31%, 44%)
CMYKcmyk(20.4%, 31%, 0%, 55.7%)
CIE-LABlab(35.63, 12.90, -18.26)
CIE-LCHlch(35.63, 22.35, 305.23°)
OKLaboklab(45.01% 0.0288 -0.0503)
OKLCHoklch(45.01% 0.058 299.8)
XYZxyz(9.9208, 8.8147, 16.7983)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E71 #65714E
analogous
#4E5471 #5A4E71 #6C4E71
triadic
#5A4E71 #715A4E #4E715A
tetradic
#5A4E71 #714E54 #65714E #4E716C
square
#5A4E71 #714E54 #65714E #4E716C
split-complementary
#5A4E71 #716C4E #54714E
monochromatic
#201C29 #3D354D #5A4E71 #776795 #978BAF

Accessibility & contrast

On white

7.60
#5A4E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A4E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E71
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E71#FFFFFF#000000##FFFFFF
##5A4E711.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465472
Deuteranopia (green-blind)
#485470
Tritanopia (blue-blind)
#56535A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a4e71;
/* rgb */ color: rgb(90, 78, 113);
/* oklch */ color: oklch(45.0% 0.058 299.8);
Tailwind
colors: {
  custom: {
    50: '#897f9a',
    500: '#5a4e71',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e71;
$custom-light: #897f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e71",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 113
  },
  "hsl": {
    "h": 260.571,
    "s": 18.325,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45005,
    "c": 0.05793,
    "h": 299.8
  },
  "luminance": 0.08815
}

Semantic roles & 50–950 ramp

primary
#5A4E71
secondary
#929C7F
accent
#BB6DA0
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0E
muted
#7C7C7E

Preview Lab

Preview with #5A4E71

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

Preview Lab → · Contrast checker → · Palette generator →

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