#5A3BB7#5A3BB7

#5A3BB7 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.185 H 288.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5A3BB7
RGBrgb(90, 59, 183)
HSLhsl(255, 51%, 47%)
HSVhsv(255, 68%, 72%)
CMYKcmyk(50.8%, 67.8%, 0%, 28.2%)
CIE-LABlab(35.44, 44.37, -61.08)
CIE-LCHlch(35.44, 75.49, 306.00°)
OKLaboklab(46.27% 0.0586 -0.1752)
OKLCHoklch(46.27% 0.185 288.5)
XYZxyz(14.3252, 8.7198, 45.7189)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BB7 #98B73B
analogous
#3B5AB7 #5A3BB7 #983BB7
triadic
#5A3BB7 #B75A3B #3BB75A
tetradic
#5A3BB7 #B73B5A #98B73B #3BB798
square
#5A3BB7 #B73B5A #98B73B #3BB798
split-complementary
#5A3BB7 #B7983B #5AB73B
monochromatic
#2C1D5A #432C89 #5A3BB7 #7D63CD #A491DC

Accessibility & contrast

On white

7.65
#5A3BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A3BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BB7
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BB7#FFFFFF#000000##FFFFFF
##5A3BB71.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#395A74
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3bb7;
/* rgb */ color: rgb(90, 59, 183);
/* oklch */ color: oklch(46.3% 0.185 288.5);
Tailwind
colors: {
  custom: {
    50: '#9173ce',
    500: '#5a3bb7',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bb7;
$custom-light: #9173ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bb7",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 255,
    "s": 51.24,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.18478,
    "h": 288.5
  },
  "luminance": 0.0872
}

Semantic roles & 50–950 ramp

primary
#5A3BB7
secondary
#B7C687
accent
#DB4DB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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