#5A3EAE#5A3EAE

#5A3EAE is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.0% C 0.170 H 289.5°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5A3EAE
RGBrgb(90, 62, 174)
HSLhsl(255, 47%, 46%)
HSVhsv(255, 64%, 68%)
CMYKcmyk(48.3%, 64.4%, 0%, 31.8%)
CIE-LABlab(35.35, 40.04, -55.88)
CIE-LCHlch(35.35, 68.75, 305.62°)
OKLaboklab(45.98% 0.0567 -0.16)
OKLCHoklch(45.98% 0.17 289.5)
XYZxyz(13.5769, 8.6744, 40.9951)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EAE #92AE3E
analogous
#3E5AAE #5A3EAE #923EAE
triadic
#5A3EAE #AE5A3E #3EAE5A
tetradic
#5A3EAE #AE3E5A #92AE3E #3EAE92
square
#5A3EAE #AE3E5A #92AE3E #3EAE92
split-complementary
#5A3EAE #AE923E #5AAE3E
monochromatic
#2B1E54 #432E81 #5A3EAE #7B62C7 #A18FD7

Accessibility & contrast

On white

7.68
#5A3EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5A3EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EAE
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EAE#FFFFFF#000000##FFFFFF
##5A3EAE1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#3F5970
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3eae;
/* rgb */ color: rgb(90, 62, 174);
/* oklch */ color: oklch(46.0% 0.170 289.5);
Tailwind
colors: {
  custom: {
    50: '#9075c7',
    500: '#5a3eae',
    950: '#000000',
  },
}
SCSS
$custom: #5a3eae;
$custom-light: #9075c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3eae",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 174
  },
  "hsl": {
    "h": 255,
    "s": 47.458,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45979,
    "c": 0.16973,
    "h": 289.5
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

primary
#5A3EAE
secondary
#B3C286
accent
#D751B5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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