#5A3ABA#5A3ABA

#5A3ABA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.190 H 288.1°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5A3ABA
RGBrgb(90, 58, 186)
HSLhsl(255, 52%, 48%)
HSVhsv(255, 69%, 73%)
CMYKcmyk(51.6%, 68.8%, 0%, 27.1%)
CIE-LABlab(35.49, 45.79, -62.77)
CIE-LCHlch(35.49, 77.69, 306.11°)
OKLaboklab(46.38% 0.0591 -0.1802)
OKLCHoklch(46.38% 0.19 288.1)
XYZxyz(14.5898, 8.7443, 47.3639)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ABA #9ABA3A
analogous
#3A5ABA #5A3ABA #9A3ABA
triadic
#5A3ABA #BA5A3A #3ABA5A
tetradic
#5A3ABA #BA3A5A #9ABA3A #3ABA9A
square
#5A3ABA #BA3A5A #9ABA3A #3ABA9A
split-complementary
#5A3ABA #BA9A3A #5ABA3A
monochromatic
#2D1D5D #432B8B #5A3ABA #7E63CE #A492DD

Accessibility & contrast

On white

7.64
#5A3ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A3ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ABA
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ABA#FFFFFF#000000##FFFFFF
##5A3ABA1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#365B75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3aba;
/* rgb */ color: rgb(90, 58, 186);
/* oklch */ color: oklch(46.4% 0.190 288.1);
Tailwind
colors: {
  custom: {
    50: '#9273d0',
    500: '#5a3aba',
    950: '#000000',
  },
}
SCSS
$custom: #5a3aba;
$custom-light: #9273d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3aba",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 186
  },
  "hsl": {
    "h": 255,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46379,
    "c": 0.18964,
    "h": 288.1
  },
  "luminance": 0.08745
}

Semantic roles & 50–950 ramp

primary
#5A3ABA
secondary
#B8C888
accent
#DC4CB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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