#5A3CA2#5A3CA2

#5A3CA2 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.7% C 0.157 H 292.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5A3CA2
RGBrgb(90, 60, 162)
HSLhsl(258, 46%, 44%)
HSVhsv(258, 63%, 64%)
CMYKcmyk(44.4%, 63%, 0%, 36.5%)
CIE-LABlab(34.01, 37.70, -50.87)
CIE-LCHlch(34.01, 63.32, 306.54°)
OKLaboklab(44.72% 0.0599 -0.1452)
OKLCHoklch(44.72% 0.157 292.4)
XYZxyz(12.3521, 8.0136, 35.0714)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CA2 #84A23C
analogous
#3C51A2 #5A3CA2 #8D3CA2
triadic
#5A3CA2 #A25A3C #3CA25A
tetradic
#5A3CA2 #A23C51 #84A23C #3CA28D
square
#5A3CA2 #A23C51 #84A23C #3CA28D
split-complementary
#5A3CA2 #A28D3C #51A23C
monochromatic
#281B49 #412B75 #5A3CA2 #7859C2 #9D86D2

Accessibility & contrast

On white

8.07
#5A3CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5A3CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CA2
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CA2#FFFFFF#000000##FFFFFF
##5A3CA21.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#455369
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a3ca2;
/* rgb */ color: rgb(90, 60, 162);
/* oklch */ color: oklch(44.7% 0.157 292.4);
Tailwind
colors: {
  custom: {
    50: '#8e73be',
    500: '#5a3ca2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ca2;
$custom-light: #8e73be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ca2",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 257.647,
    "s": 45.946,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44722,
    "c": 0.15712,
    "h": 292.4
  },
  "luminance": 0.08014
}

Semantic roles & 50–950 ramp

primary
#5A3CA2
secondary
#AABC7D
accent
#D652AF
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5A3CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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