#5A4E95#5A4E95

#5A4E95 is a mid, moderate violet. Relative luminance 0.098; OKLCH L 47.0% C 0.112 H 289.1°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5A4E95
RGBrgb(90, 78, 149)
HSLhsl(250, 31%, 45%)
HSVhsv(250, 48%, 58%)
CMYKcmyk(39.6%, 47.7%, 0%, 41.6%)
CIE-LABlab(37.47, 22.89, -37.47)
CIE-LCHlch(37.47, 43.91, 301.41°)
OKLaboklab(47.01% 0.0367 -0.1059)
OKLCHoklch(47.01% 0.112 289.1)
XYZxyz(12.3642, 9.7920, 29.6665)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E95 #89954E
analogous
#4E6695 #5A4E95 #7E4E95
triadic
#5A4E95 #955A4E #4E955A
tetradic
#5A4E95 #954E66 #89954E #4E957E
square
#5A4E95 #954E66 #89954E #4E957E
split-complementary
#5A4E95 #957E4E #66954E
monochromatic
#292445 #42396D #5A4E95 #796DB3 #9E96C8

Accessibility & contrast

On white

7.10
#5A4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5A4E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E95
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E95#FFFFFF#000000##FFFFFF
##5A4E951.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345A98
Deuteranopia (green-blind)
#345693
Tritanopia (blue-blind)
#4A5C6A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a4e95;
/* rgb */ color: rgb(90, 78, 149);
/* oklch */ color: oklch(47.0% 0.112 289.1);
Tailwind
colors: {
  custom: {
    50: '#8c7fb4',
    500: '#5a4e95',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e95;
$custom-light: #8c7fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e95",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 250.141,
    "s": 31.278,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47008,
    "c": 0.11205,
    "h": 289.1
  },
  "luminance": 0.09792
}

Semantic roles & 50–950 ramp

primary
#5A4E95
secondary
#ADB48A
accent
#C760B6
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5A4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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