#5A4E72#5A4E72

#5A4E72 is a mid, muted violet. Relative luminance 0.088; OKLCH L 45.1% C 0.059 H 299.3°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5A4E72
RGBrgb(90, 78, 114)
HSLhsl(260, 19%, 38%)
HSVhsv(260, 32%, 45%)
CMYKcmyk(21.1%, 31.6%, 0%, 55.3%)
CIE-LABlab(35.67, 13.15, -18.81)
CIE-LCHlch(35.67, 22.95, 304.96°)
OKLaboklab(45.05% 0.0291 -0.0518)
OKLCHoklch(45.05% 0.059 299.3)
XYZxyz(9.9774, 8.8373, 17.0965)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E72 #66724E
analogous
#4E5472 #5A4E72 #6C4E72
triadic
#5A4E72 #725A4E #4E725A
tetradic
#5A4E72 #724E54 #66724E #4E726C
square
#5A4E72 #724E54 #66724E #4E726C
split-complementary
#5A4E72 #726C4E #54724E
monochromatic
#211C29 #3D354E #5A4E72 #776796 #978BB0

Accessibility & contrast

On white

7.59
#5A4E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A4E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E72
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E72#FFFFFF#000000##FFFFFF
##5A4E721.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465473
Deuteranopia (green-blind)
#485471
Tritanopia (blue-blind)
#56545B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a4e72;
/* rgb */ color: rgb(90, 78, 114);
/* oklch */ color: oklch(45.1% 0.059 299.3);
Tailwind
colors: {
  custom: {
    50: '#897f9a',
    500: '#5a4e72',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e72;
$custom-light: #897f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e72",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 114
  },
  "hsl": {
    "h": 260,
    "s": 18.75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45054,
    "c": 0.05945,
    "h": 299.3
  },
  "luminance": 0.08837
}

Semantic roles & 50–950 ramp

primary
#5A4E72
secondary
#939D7F
accent
#BB6CA1
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0B0A0E
muted
#7C7C7E

Preview Lab

Preview with #5A4E72

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

Preview Lab → · Contrast checker → · Palette generator →

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