#5A3BA2#5A3BA2

#5A3BA2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.6% C 0.159 H 292.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5A3BA2
RGBrgb(90, 59, 162)
HSLhsl(258, 47%, 43%)
HSVhsv(258, 64%, 64%)
CMYKcmyk(44.4%, 63.6%, 0%, 36.5%)
CIE-LABlab(33.79, 38.28, -51.22)
CIE-LCHlch(33.79, 63.94, 306.77°)
OKLaboklab(44.56% 0.0611 -0.1463)
OKLCHoklch(44.56% 0.159 292.7)
XYZxyz(12.3002, 7.9099, 35.0541)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BA2 #83A23B
analogous
#3B50A2 #5A3BA2 #8D3BA2
triadic
#5A3BA2 #A25A3B #3BA25A
tetradic
#5A3BA2 #A23B50 #83A23B #3BA28D
square
#5A3BA2 #A23B50 #83A23B #3BA28D
split-complementary
#5A3BA2 #A28D3B #50A23B
monochromatic
#281A48 #412B75 #5A3BA2 #7858C2 #9C85D3

Accessibility & contrast

On white

8.13
#5A3BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A3BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BA2
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BA2#FFFFFF#000000##FFFFFF
##5A3BA21.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#465369
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a3ba2;
/* rgb */ color: rgb(90, 59, 162);
/* oklch */ color: oklch(44.6% 0.159 292.7);
Tailwind
colors: {
  custom: {
    50: '#8e73be',
    500: '#5a3ba2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ba2;
$custom-light: #8e73be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ba2",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 162
  },
  "hsl": {
    "h": 258.058,
    "s": 46.606,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44564,
    "c": 0.15851,
    "h": 292.7
  },
  "luminance": 0.0791
}

Semantic roles & 50–950 ramp

primary
#5A3BA2
secondary
#A9BD7C
accent
#D652AE
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5A3BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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