#5A3CA6#5A3CA6

#5A3CA6 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.0% C 0.162 H 291.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5A3CA6
RGBrgb(90, 60, 166)
HSLhsl(257, 47%, 44%)
HSVhsv(257, 64%, 65%)
CMYKcmyk(45.8%, 63.9%, 0%, 34.9%)
CIE-LABlab(34.31, 38.85, -52.79)
CIE-LCHlch(34.31, 65.55, 306.35°)
OKLaboklab(45.03% 0.0596 -0.1509)
OKLCHoklch(45.03% 0.162 291.6)
XYZxyz(12.7133, 8.1581, 36.9738)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CA6 #88A63C
analogous
#3C53A6 #5A3CA6 #8F3CA6
triadic
#5A3CA6 #A65A3C #3CA65A
tetradic
#5A3CA6 #A63C53 #88A63C #3CA68F
square
#5A3CA6 #A63C53 #88A63C #3CA68F
split-complementary
#5A3CA6 #A68F3C #53A63C
monochromatic
#291C4C #422C79 #5A3CA6 #795BC4 #9E88D4

Accessibility & contrast

On white

7.98
#5A3CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5A3CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CA6
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CA6#FFFFFF#000000##FFFFFF
##5A3CA61.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#43556B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a3ca6;
/* rgb */ color: rgb(90, 60, 166);
/* oklch */ color: oklch(45.0% 0.162 291.6);
Tailwind
colors: {
  custom: {
    50: '#8f73c1',
    500: '#5a3ca6',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ca6;
$custom-light: #8f73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ca6",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 256.981,
    "s": 46.903,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45033,
    "c": 0.16224,
    "h": 291.6
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#5A3CA6
secondary
#ADBE7F
accent
#D751B1
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5A3CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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