#5A3CA1#5A3CA1

#5A3CA1 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.6% C 0.156 H 292.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5A3CA1
RGBrgb(90, 60, 161)
HSLhsl(258, 46%, 43%)
HSVhsv(258, 63%, 63%)
CMYKcmyk(44.1%, 62.7%, 0%, 36.9%)
CIE-LABlab(33.94, 37.41, -50.39)
CIE-LCHlch(33.94, 62.76, 306.59°)
OKLaboklab(44.65% 0.06 -0.1438)
OKLCHoklch(44.65% 0.156 292.6)
XYZxyz(12.2636, 7.9782, 34.6051)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CA1 #83A13C
analogous
#3C50A1 #5A3CA1 #8C3CA1
triadic
#5A3CA1 #A15A3C #3CA15A
tetradic
#5A3CA1 #A13C50 #83A13C #3CA18C
square
#5A3CA1 #A13C50 #83A13C #3CA18C
split-complementary
#5A3CA1 #A18C3C #50A13C
monochromatic
#281B48 #412B74 #5A3CA1 #7859C1 #9C86D2

Accessibility & contrast

On white

8.09
#5A3CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A3CA1
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CA1#FFFFFF#000000##FFFFFF
##5A3CA11.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#004E9F
Tritanopia (blue-blind)
#465369
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a3ca1;
/* rgb */ color: rgb(90, 60, 161);
/* oklch */ color: oklch(44.6% 0.156 292.6);
Tailwind
colors: {
  custom: {
    50: '#8e73bd',
    500: '#5a3ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ca1;
$custom-light: #8e73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ca1",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 161
  },
  "hsl": {
    "h": 257.822,
    "s": 45.701,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44645,
    "c": 0.15583,
    "h": 292.6
  },
  "luminance": 0.07979
}

Semantic roles & 50–950 ramp

primary
#5A3CA1
secondary
#A9BC7D
accent
#D552AE
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5A3CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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