#5A3AAE#5A3AAE

#5A3AAE is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.4% C 0.175 H 290.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5A3AAE
RGBrgb(90, 58, 174)
HSLhsl(257, 50%, 45%)
HSVhsv(257, 67%, 68%)
CMYKcmyk(48.3%, 66.7%, 0%, 31.8%)
CIE-LABlab(34.51, 42.31, -57.25)
CIE-LCHlch(34.51, 71.19, 306.46°)
OKLaboklab(45.37% 0.0609 -0.164)
OKLCHoklch(45.37% 0.175 290.4)
XYZxyz(13.3673, 8.2552, 40.9253)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3AAE #8EAE3A
analogous
#3A54AE #5A3AAE #943AAE
triadic
#5A3AAE #AE5A3A #3AAE5A
tetradic
#5A3AAE #AE3A54 #8EAE3A #3AAE94
square
#5A3AAE #AE3A54 #8EAE3A #3AAE94
split-complementary
#5A3AAE #AE943A #54AE3A
monochromatic
#2B1B52 #422B80 #5A3AAE #7A5CC9 #A08AD8

Accessibility & contrast

On white

7.92
#5A3AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A3AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3AAE
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3AAE#FFFFFF#000000##FFFFFF
##5A3AAE1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#3F566F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a3aae;
/* rgb */ color: rgb(90, 58, 174);
/* oklch */ color: oklch(45.4% 0.175 290.4);
Tailwind
colors: {
  custom: {
    50: '#9072c7',
    500: '#5a3aae',
    950: '#000000',
  },
}
SCSS
$custom: #5a3aae;
$custom-light: #9072c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3aae",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 174
  },
  "hsl": {
    "h": 256.552,
    "s": 50,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45372,
    "c": 0.17493,
    "h": 290.4
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#5A3AAE
secondary
#B1C281
accent
#DA4EB3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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