#5A3CB5#5A3CB5

#5A3CB5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.2% C 0.181 H 288.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5A3CB5
RGBrgb(90, 60, 181)
HSLhsl(255, 50%, 47%)
HSVhsv(255, 67%, 71%)
CMYKcmyk(50.3%, 66.9%, 0%, 29%)
CIE-LABlab(35.48, 43.23, -59.83)
CIE-LCHlch(35.48, 73.81, 305.85°)
OKLaboklab(46.25% 0.0579 -0.1716)
OKLCHoklch(46.25% 0.181 288.7)
XYZxyz(14.1704, 8.7409, 44.6476)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CB5 #97B53C
analogous
#3C5BB5 #5A3CB5 #963CB5
triadic
#5A3CB5 #B55A3C #3CB55A
tetradic
#5A3CB5 #B53C5B #97B53C #3CB596
square
#5A3CB5 #B53C5B #97B53C #3CB596
split-complementary
#5A3CB5 #B5963C #5BB53C
monochromatic
#2C1E59 #432D87 #5A3CB5 #7D63CB #A391DB

Accessibility & contrast

On white

7.64
#5A3CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A3CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CB5
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CB5#FFFFFF#000000##FFFFFF
##5A3CB51.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3cb5;
/* rgb */ color: rgb(90, 60, 181);
/* oklch */ color: oklch(46.2% 0.181 288.7);
Tailwind
colors: {
  custom: {
    50: '#9174cc',
    500: '#5a3cb5',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cb5;
$custom-light: #9174cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cb5",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 254.876,
    "s": 50.207,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46247,
    "c": 0.18108,
    "h": 288.7
  },
  "luminance": 0.08742
}

Semantic roles & 50–950 ramp

primary
#5A3CB5
secondary
#B6C687
accent
#DA4EB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5A3CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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