#5A4E6E#5A4E6E

#5A4E6E is a dark, muted violet. Relative luminance 0.087; OKLCH L 44.9% C 0.053 H 301.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5A4E6E
RGBrgb(90, 78, 110)
HSLhsl(263, 17%, 37%)
HSVhsv(263, 29%, 43%)
CMYKcmyk(18.2%, 29.1%, 0%, 56.9%)
CIE-LABlab(35.49, 12.14, -16.59)
CIE-LCHlch(35.49, 20.55, 306.19°)
OKLaboklab(44.86% 0.0279 -0.0455)
OKLCHoklch(44.86% 0.053 301.5)
XYZxyz(9.7547, 8.7482, 15.9235)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E6E #626E4E
analogous
#4E526E #5A4E6E #6A4E6E
triadic
#5A4E6E #6E5A4E #4E6E5A
tetradic
#5A4E6E #6E4E52 #626E4E #4E6E6A
square
#5A4E6E #6E4E52 #626E4E #4E6E6A
split-complementary
#5A4E6E #6E6A4E #526E4E
monochromatic
#1F1B26 #3D354A #5A4E6E #776792 #978AAC

Accessibility & contrast

On white

7.64
#5A4E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A4E6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E6E
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E6E#FFFFFF#000000##FFFFFF
##5A4E6E1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47536F
Deuteranopia (green-blind)
#4A536D
Tritanopia (blue-blind)
#575359
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a4e6e;
/* rgb */ color: rgb(90, 78, 110);
/* oklch */ color: oklch(44.9% 0.053 301.5);
Tailwind
colors: {
  custom: {
    50: '#897f97',
    500: '#5a4e6e',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e6e;
$custom-light: #897f97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e6e",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 110
  },
  "hsl": {
    "h": 262.5,
    "s": 17.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44862,
    "c": 0.05337,
    "h": 301.5
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#5A4E6E
secondary
#8F9A7E
accent
#BA6E9D
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0D
muted
#7C7C7E

Preview Lab

Preview with #5A4E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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