#5A3CAB#5A3CAB

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

Color values

HEX#5A3CAB
RGBrgb(90, 60, 171)
HSLhsl(256, 48%, 45%)
HSVhsv(256, 65%, 67%)
CMYKcmyk(47.4%, 64.9%, 0%, 32.9%)
CIE-LABlab(34.69, 40.31, -55.16)
CIE-LCHlch(34.69, 68.32, 306.15°)
OKLaboklab(45.43% 0.0591 -0.1579)
OKLCHoklch(45.43% 0.169 290.5)
XYZxyz(13.1809, 8.3452, 39.4365)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CAB #8DAB3C
analogous
#3C56AB #5A3CAB #913CAB
triadic
#5A3CAB #AB5A3C #3CAB5A
tetradic
#5A3CAB #AB3C56 #8DAB3C #3CAB91
square
#5A3CAB #AB3C56 #8DAB3C #3CAB91
split-complementary
#5A3CAB #AB913C #56AB3C
monochromatic
#2A1C50 #422C7E #5A3CAB #7A5EC6 #9F8BD6

Accessibility & contrast

On white

7.87
#5A3CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5A3CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CAB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CAB#FFFFFF#000000##FFFFFF
##5A3CAB1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#41566E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a3cab;
/* rgb */ color: rgb(90, 60, 171);
/* oklch */ color: oklch(45.4% 0.169 290.5);
Tailwind
colors: {
  custom: {
    50: '#8f73c5',
    500: '#5a3cab',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cab;
$custom-light: #8f73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cab",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 171
  },
  "hsl": {
    "h": 256.216,
    "s": 48.052,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4543,
    "c": 0.16858,
    "h": 290.5
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#5A3CAB
secondary
#B0C182
accent
#D850B3
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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