#5A3BAD#5A3BAD

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

Color values

HEX#5A3BAD
RGBrgb(90, 59, 173)
HSLhsl(256, 49%, 45%)
HSVhsv(256, 66%, 68%)
CMYKcmyk(48%, 65.9%, 0%, 32.2%)
CIE-LABlab(34.64, 41.46, -56.45)
CIE-LCHlch(34.64, 70.03, 306.29°)
OKLaboklab(45.44% 0.06 -0.1616)
OKLCHoklch(45.44% 0.172 290.4)
XYZxyz(13.3211, 8.3182, 40.4307)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BAD #8EAD3B
analogous
#3B55AD #5A3BAD #933BAD
triadic
#5A3BAD #AD5A3B #3BAD5A
tetradic
#5A3BAD #AD3B55 #8EAD3B #3BAD93
square
#5A3BAD #AD3B55 #8EAD3B #3BAD93
split-complementary
#5A3BAD #AD933B #55AD3B
monochromatic
#2B1C52 #422B7F #5A3BAD #7A5DC8 #A08BD7

Accessibility & contrast

On white

7.88
#5A3BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5A3BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BAD
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BAD#FFFFFF#000000##FFFFFF
##5A3BAD1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#3F576F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a3bad;
/* rgb */ color: rgb(90, 59, 173);
/* oklch */ color: oklch(45.4% 0.172 290.4);
Tailwind
colors: {
  custom: {
    50: '#9073c6',
    500: '#5a3bad',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bad;
$custom-light: #9073c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bad",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 173
  },
  "hsl": {
    "h": 256.316,
    "s": 49.138,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45439,
    "c": 0.1724,
    "h": 290.4
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#5A3BAD
secondary
#B1C282
accent
#D94FB3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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