#5A3AB3#5A3AB3

#5A3AB3 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.181 H 289.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5A3AB3
RGBrgb(90, 58, 179)
HSLhsl(256, 51%, 46%)
HSVhsv(256, 68%, 70%)
CMYKcmyk(49.7%, 67.6%, 0%, 29.8%)
CIE-LABlab(34.91, 43.76, -59.57)
CIE-LCHlch(34.91, 73.91, 306.30°)
OKLaboklab(45.79% 0.0602 -0.1708)
OKLCHoklch(45.79% 0.181 289.4)
XYZxyz(13.8638, 8.4539, 43.5403)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3AB3 #93B33A
analogous
#3A57B3 #5A3AB3 #973AB3
triadic
#5A3AB3 #B35A3A #3AB35A
tetradic
#5A3AB3 #B33A57 #93B33A #3AB397
square
#5A3AB3 #B33A57 #93B33A #3AB397
split-complementary
#5A3AB3 #B3973A #57B33A
monochromatic
#2C1C57 #432B85 #5A3AB3 #7C5FCB #A28DDA

Accessibility & contrast

On white

7.80
#5A3AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A3AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3AB3
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3AB3#FFFFFF#000000##FFFFFF
##5A3AB31.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#3C5872
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a3ab3;
/* rgb */ color: rgb(90, 58, 179);
/* oklch */ color: oklch(45.8% 0.181 289.4);
Tailwind
colors: {
  custom: {
    50: '#9172cb',
    500: '#5a3ab3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ab3;
$custom-light: #9172cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ab3",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 255.868,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45786,
    "c": 0.1811,
    "h": 289.4
  },
  "luminance": 0.08454
}

Semantic roles & 50–950 ramp

primary
#5A3AB3
secondary
#B4C584
accent
#DB4DB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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