#5A4E7E#5A4E7E

#5A4E7E is a mid, moderate violet. Relative luminance 0.091; OKLCH L 45.7% C 0.078 H 294.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5A4E7E
RGBrgb(90, 78, 126)
HSLhsl(255, 24%, 40%)
HSVhsv(255, 38%, 49%)
CMYKcmyk(28.6%, 38.1%, 0%, 50.6%)
CIE-LABlab(36.23, 16.34, -25.38)
CIE-LCHlch(36.23, 30.18, 302.77°)
OKLaboklab(45.67% 0.0324 -0.0707)
OKLCHoklch(45.67% 0.078 294.6)
XYZxyz(10.7058, 9.1287, 20.9326)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E7E #727E4E
analogous
#4E5A7E #5A4E7E #724E7E
triadic
#5A4E7E #7E5A4E #4E7E5A
tetradic
#5A4E7E #7E4E5A #727E4E #4E7E72
square
#5A4E7E #7E4E5A #727E4E #4E7E72
split-complementary
#5A4E7E #7E724E #5A7E4E
monochromatic
#241F32 #3F3758 #5A4E7E #7668A1 #988EB9

Accessibility & contrast

On white

7.43
#5A4E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A4E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E7E
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E7E#FFFFFF#000000##FFFFFF
##5A4E7E1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415680
Deuteranopia (green-blind)
#43557D
Tritanopia (blue-blind)
#525660
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a4e7e;
/* rgb */ color: rgb(90, 78, 126);
/* oklch */ color: oklch(45.7% 0.078 294.6);
Tailwind
colors: {
  custom: {
    50: '#8a7fa3',
    500: '#5a4e7e',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e7e;
$custom-light: #8a7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e7e",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 126
  },
  "hsl": {
    "h": 255,
    "s": 23.529,
    "l": 40
  },
  "oklch": {
    "l": 0.45668,
    "c": 0.07773,
    "h": 294.6
  },
  "luminance": 0.09129
}

Semantic roles & 50–950 ramp

primary
#5A4E7E
secondary
#9DA682
accent
#C068AA
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A0F
muted
#7D7C7F

Preview Lab

Preview with #5A4E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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