#5A3CB3#5A3CB3

#5A3CB3 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.1% C 0.179 H 289.0°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5A3CB3
RGBrgb(90, 60, 179)
HSLhsl(255, 50%, 47%)
HSVhsv(255, 66%, 70%)
CMYKcmyk(49.7%, 66.5%, 0%, 29.8%)
CIE-LABlab(35.32, 42.64, -58.90)
CIE-LCHlch(35.32, 72.72, 305.90°)
OKLaboklab(46.08% 0.0582 -0.1689)
OKLCHoklch(46.08% 0.179 289)
XYZxyz(13.9666, 8.6595, 43.5746)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CB3 #95B33C
analogous
#3C5AB3 #5A3CB3 #963CB3
triadic
#5A3CB3 #B35A3C #3CB35A
tetradic
#5A3CB3 #B33C5A #95B33C #3CB396
square
#5A3CB3 #B33C5A #95B33C #3CB396
split-complementary
#5A3CB3 #B3963C #5AB33C
monochromatic
#2C1D57 #432D85 #5A3CB3 #7C62CA #A290DA

Accessibility & contrast

On white

7.69
#5A3CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A3CB3
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CB3#FFFFFF#000000##FFFFFF
##5A3CB31.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#3B5972
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3cb3;
/* rgb */ color: rgb(90, 60, 179);
/* oklch */ color: oklch(46.1% 0.179 289.0);
Tailwind
colors: {
  custom: {
    50: '#9074cb',
    500: '#5a3cb3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cb3;
$custom-light: #9074cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cb3",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 179
  },
  "hsl": {
    "h": 255.126,
    "s": 49.791,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46081,
    "c": 0.1786,
    "h": 289
  },
  "luminance": 0.0866
}

Semantic roles & 50–950 ramp

primary
#5A3CB3
secondary
#B5C586
accent
#D94EB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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