#5A3BB9#5A3BB9

#5A3BB9 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.187 H 288.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5A3BB9
RGBrgb(90, 59, 185)
HSLhsl(255, 52%, 48%)
HSVhsv(255, 68%, 73%)
CMYKcmyk(51.4%, 68.1%, 0%, 27.5%)
CIE-LABlab(35.60, 44.95, -61.99)
CIE-LCHlch(35.60, 76.57, 305.95°)
OKLaboklab(46.44% 0.0583 -0.1779)
OKLCHoklch(46.44% 0.187 288.1)
XYZxyz(14.5348, 8.8037, 46.8230)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BB9 #9AB93B
analogous
#3B5BB9 #5A3BB9 #993BB9
triadic
#5A3BB9 #B95A3B #3BB95A
tetradic
#5A3BB9 #B93B5B #9AB93B #3BB999
square
#5A3BB9 #B93B5B #9AB93B #3BB999
split-complementary
#5A3BB9 #B9993B #5BB93B
monochromatic
#2D1D5C #432C8B #5A3BB9 #7E64CD #A492DC

Accessibility & contrast

On white

7.61
#5A3BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A3BB9
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BB9#FFFFFF#000000##FFFFFF
##5A3BB91.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#375B75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3bb9;
/* rgb */ color: rgb(90, 59, 185);
/* oklch */ color: oklch(46.4% 0.187 288.1);
Tailwind
colors: {
  custom: {
    50: '#9173cf',
    500: '#5a3bb9',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bb9;
$custom-light: #9173cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bb9",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 185
  },
  "hsl": {
    "h": 254.762,
    "s": 51.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46436,
    "c": 0.18723,
    "h": 288.1
  },
  "luminance": 0.08804
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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