#5A3BBA#5A3BBA

#5A3BBA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.188 H 288.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5A3BBA
RGBrgb(90, 59, 186)
HSLhsl(255, 52%, 48%)
HSVhsv(255, 68%, 73%)
CMYKcmyk(51.6%, 68.3%, 0%, 27.1%)
CIE-LABlab(35.69, 45.24, -62.44)
CIE-LCHlch(35.69, 77.11, 305.92°)
OKLaboklab(46.52% 0.0581 -0.1793)
OKLCHoklch(46.52% 0.188 288)
XYZxyz(14.6407, 8.8461, 47.3809)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BBA #9BBA3B
analogous
#3B5BBA #5A3BBA #9A3BBA
triadic
#5A3BBA #BA5A3B #3BBA5A
tetradic
#5A3BBA #BA3B5B #9BBA3B #3BBA9A
square
#5A3BBA #BA3B5B #9BBA3B #3BBA9A
split-complementary
#5A3BBA #BA9A3B #5BBA3B
monochromatic
#2D1E5D #442C8C #5A3BBA #7E64CE #A593DD

Accessibility & contrast

On white

7.58
#5A3BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A3BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BBA
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BBA#FFFFFF#000000##FFFFFF
##5A3BBA1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#365B76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3bba;
/* rgb */ color: rgb(90, 59, 186);
/* oklch */ color: oklch(46.5% 0.188 288.0);
Tailwind
colors: {
  custom: {
    50: '#9173d0',
    500: '#5a3bba',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bba;
$custom-light: #9173d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bba",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 186
  },
  "hsl": {
    "h": 254.646,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46521,
    "c": 0.18845,
    "h": 288
  },
  "luminance": 0.08847
}

Semantic roles & 50–950 ramp

primary
#5A3BBA
secondary
#B8C889
accent
#DB4DB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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