#5A1AA0#5A1AA0

#5A1AA0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.194 H 298.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5A1AA0
RGBrgb(90, 26, 160)
HSLhsl(269, 72%, 36%)
HSVhsv(269, 84%, 63%)
CMYKcmyk(43.7%, 83.8%, 0%, 37.3%)
CIE-LABlab(27.98, 53.57, -59.49)
CIE-LCHlch(27.98, 80.06, 312.00°)
OKLaboklab(40.39% 0.0922 -0.1704)
OKLCHoklch(40.39% 0.194 298.4)
XYZxyz(10.9294, 5.4503, 33.7271)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1AA0 #60A01A
analogous
#1A1DA0 #5A1AA0 #9D1AA0
triadic
#5A1AA0 #A05A1A #1AA05A
tetradic
#5A1AA0 #A01A1D #60A01A #1AA09D
square
#5A1AA0 #A01A1D #60A01A #1AA09D
split-complementary
#5A1AA0 #A09D1A #1DA01A
monochromatic
#1F0937 #3C116B #5A1AA0 #7823D5 #9752E3

Accessibility & contrast

On white

10.05
#5A1AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5A1AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1AA0
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1AA0#FFFFFF#000000##FFFFFF
##5A1AA01.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#48415F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a1aa0;
/* rgb */ color: rgb(90, 26, 160);
/* oklch */ color: oklch(40.4% 0.194 298.4);
Tailwind
colors: {
  custom: {
    50: '#9060bd',
    500: '#5a1aa0',
    950: '#000000',
  },
}
SCSS
$custom: #5a1aa0;
$custom-light: #9060bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1aa0",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 268.657,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40389,
    "c": 0.19373,
    "h": 298.4
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#5A1AA0
secondary
#8EC550
accent
#EF3998
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5A1AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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