#5A3ABB#5A3ABB

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

Color values

HEX#5A3ABB
RGBrgb(90, 58, 187)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 69%, 73%)
CMYKcmyk(51.9%, 69%, 0%, 26.7%)
CIE-LABlab(35.57, 46.08, -63.22)
CIE-LCHlch(35.57, 78.23, 306.09°)
OKLaboklab(46.46% 0.0589 -0.1815)
OKLCHoklch(46.46% 0.191 288)
XYZxyz(14.6965, 8.7869, 47.9257)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ABB #9BBB3A
analogous
#3A5ABB #5A3ABB #9A3ABB
triadic
#5A3ABB #BB5A3A #3ABB5A
tetradic
#5A3ABB #BB3A5A #9BBB3A #3ABB9A
square
#5A3ABB #BB3A5A #9BBB3A #3ABB9A
split-complementary
#5A3ABB #BB9A3A #5ABB3A
monochromatic
#2D1D5E #442C8C #5A3ABB #7E63CF #A592DD

Accessibility & contrast

On white

7.62
#5A3ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A3ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ABB
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ABB#FFFFFF#000000##FFFFFF
##5A3ABB1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#365B76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3abb;
/* rgb */ color: rgb(90, 58, 187);
/* oklch */ color: oklch(46.5% 0.191 288.0);
Tailwind
colors: {
  custom: {
    50: '#9273d0',
    500: '#5a3abb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3abb;
$custom-light: #9273d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3abb",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 187
  },
  "hsl": {
    "h": 254.884,
    "s": 52.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46464,
    "c": 0.19086,
    "h": 288
  },
  "luminance": 0.08788
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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