#5A3ABF#5A3ABF

#5A3ABF is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.8% C 0.196 H 287.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5A3ABF
RGBrgb(90, 58, 191)
HSLhsl(254, 53%, 49%)
HSVhsv(254, 70%, 75%)
CMYKcmyk(52.9%, 69.6%, 0%, 25.1%)
CIE-LABlab(35.91, 47.24, -65.02)
CIE-LCHlch(35.91, 80.37, 306.00°)
OKLaboklab(46.81% 0.0582 -0.1868)
OKLCHoklch(46.81% 0.196 287.3)
XYZxyz(15.1307, 8.9606, 50.2124)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ABF #9FBF3A
analogous
#3A5DBF #5A3ABF #9D3ABF
triadic
#5A3ABF #BF5A3A #3ABF5A
tetradic
#5A3ABF #BF3A5D #9FBF3A #3ABF9D
square
#5A3ABF #BF3A5D #9FBF3A #3ABF9D
split-complementary
#5A3ABF #BF9D3A #5DBF3A
monochromatic
#2E1D61 #442C90 #5A3ABF #7F66D0 #A695DF

Accessibility & contrast

On white

7.52
#5A3ABF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A3ABF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ABF
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ABF#FFFFFF#000000##FFFFFF
##5A3ABF1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#0051BC
Tritanopia (blue-blind)
#325D78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3abf;
/* rgb */ color: rgb(90, 58, 191);
/* oklch */ color: oklch(46.8% 0.196 287.3);
Tailwind
colors: {
  custom: {
    50: '#9273d3',
    500: '#5a3abf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3abf;
$custom-light: #9273d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3abf",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 191
  },
  "hsl": {
    "h": 254.436,
    "s": 53.414,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4681,
    "c": 0.19568,
    "h": 287.3
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#5A3ABF
secondary
#BBCA8B
accent
#DD4BBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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