#5A3BB5#5A3BB5

#5A3BB5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.182 H 288.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5A3BB5
RGBrgb(90, 59, 181)
HSLhsl(255, 51%, 47%)
HSVhsv(255, 67%, 71%)
CMYKcmyk(50.3%, 67.4%, 0%, 29%)
CIE-LABlab(35.28, 43.78, -60.16)
CIE-LCHlch(35.28, 74.40, 306.05°)
OKLaboklab(46.1% 0.0589 -0.1725)
OKLCHoklch(46.1% 0.182 288.8)
XYZxyz(14.1185, 8.6372, 44.6303)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BB5 #96B53B
analogous
#3B59B5 #5A3BB5 #973BB5
triadic
#5A3BB5 #B55A3B #3BB55A
tetradic
#5A3BB5 #B53B59 #96B53B #3BB597
square
#5A3BB5 #B53B59 #96B53B #3BB597
split-complementary
#5A3BB5 #B5973B #59B53B
monochromatic
#2C1D59 #432C87 #5A3BB5 #7D62CC #A390DB

Accessibility & contrast

On white

7.70
#5A3BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5A3BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BB5
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BB5#FFFFFF#000000##FFFFFF
##5A3BB51.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#3A5973
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3bb5;
/* rgb */ color: rgb(90, 59, 181);
/* oklch */ color: oklch(46.1% 0.182 288.8);
Tailwind
colors: {
  custom: {
    50: '#9173cc',
    500: '#5a3bb5',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bb5;
$custom-light: #9173cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bb5",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 255.246,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46099,
    "c": 0.18232,
    "h": 288.8
  },
  "luminance": 0.08638
}

Semantic roles & 50–950 ramp

primary
#5A3BB5
secondary
#B5C686
accent
#DA4DB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5A3BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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