#5A4E89#5A4E89

#5A4E89 is a mid, moderate violet. Relative luminance 0.094; OKLCH L 46.3% C 0.094 H 291.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5A4E89
RGBrgb(90, 78, 137)
HSLhsl(252, 27%, 42%)
HSVhsv(252, 43%, 54%)
CMYKcmyk(34.3%, 43.1%, 0%, 46.3%)
CIE-LABlab(36.80, 19.41, -31.24)
CIE-LCHlch(36.80, 36.78, 301.85°)
OKLaboklab(46.28% 0.0348 -0.0877)
OKLCHoklch(46.28% 0.094 291.6)
XYZxyz(11.4550, 9.4283, 24.8784)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E89 #7D894E
analogous
#4E6089 #5A4E89 #784E89
triadic
#5A4E89 #895A4E #4E895A
tetradic
#5A4E89 #894E60 #7D894E #4E8978
square
#5A4E89 #894E60 #7D894E #4E8978
split-complementary
#5A4E89 #89784E #60894E
monochromatic
#27223B #403862 #5A4E89 #776AAA #9B91C0

Accessibility & contrast

On white

7.28
#5A4E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A4E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E89
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E89#FFFFFF#000000##FFFFFF
##5A4E891.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C578B
Deuteranopia (green-blind)
#3D5588
Tritanopia (blue-blind)
#4F5965
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a4e89;
/* rgb */ color: rgb(90, 78, 137);
/* oklch */ color: oklch(46.3% 0.094 291.6);
Tailwind
colors: {
  custom: {
    50: '#8b7fac',
    500: '#5a4e89',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e89;
$custom-light: #8b7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e89",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 137
  },
  "hsl": {
    "h": 252.203,
    "s": 27.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46283,
    "c": 0.09431,
    "h": 291.6
  },
  "luminance": 0.09429
}

Semantic roles & 50–950 ramp

primary
#5A4E89
secondary
#A5AD86
accent
#C464B0
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5A4E89

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

Preview Lab → · Contrast checker → · Palette generator →

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