#5A4E83#5A4E83

#5A4E83 is a mid, moderate violet. Relative luminance 0.093; OKLCH L 45.9% C 0.085 H 293.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5A4E83
RGBrgb(90, 78, 131)
HSLhsl(254, 25%, 41%)
HSVhsv(254, 40%, 51%)
CMYKcmyk(31.3%, 40.5%, 0%, 48.6%)
CIE-LABlab(36.48, 17.72, -28.06)
CIE-LCHlch(36.48, 33.19, 302.27°)
OKLaboklab(45.94% 0.0335 -0.0784)
OKLCHoklch(45.94% 0.085 293.1)
XYZxyz(11.0365, 9.2609, 22.6744)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E83 #77834E
analogous
#4E5C83 #5A4E83 #744E83
triadic
#5A4E83 #835A4E #4E835A
tetradic
#5A4E83 #834E5C #77834E #4E8374
square
#5A4E83 #834E5C #77834E #4E8374
split-complementary
#5A4E83 #83744E #5C834E
monochromatic
#252036 #40375D #5A4E83 #7669A6 #998FBC

Accessibility & contrast

On white

7.36
#5A4E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A4E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E83
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E83#FFFFFF#000000##FFFFFF
##5A4E831.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5685
Deuteranopia (green-blind)
#405582
Tritanopia (blue-blind)
#515762
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a4e83;
/* rgb */ color: rgb(90, 78, 131);
/* oklch */ color: oklch(45.9% 0.085 293.1);
Tailwind
colors: {
  custom: {
    50: '#8a7fa7',
    500: '#5a4e83',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e83;
$custom-light: #8a7fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e83",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 131
  },
  "hsl": {
    "h": 253.585,
    "s": 25.359,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45942,
    "c": 0.0853,
    "h": 293.1
  },
  "luminance": 0.09261
}

Semantic roles & 50–950 ramp

primary
#5A4E83
secondary
#A1A984
accent
#C266AD
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A0F
muted
#7D7C7F

Preview Lab

Preview with #5A4E83

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

Preview Lab → · Contrast checker → · Palette generator →

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