#5A3AAA#5A3AAA

#5A3AAA is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.0% C 0.170 H 291.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5A3AAA
RGBrgb(90, 58, 170)
HSLhsl(257, 49%, 45%)
HSVhsv(257, 66%, 67%)
CMYKcmyk(47.1%, 65.9%, 0%, 33.3%)
CIE-LABlab(34.19, 41.15, -55.38)
CIE-LCHlch(34.19, 68.99, 306.62°)
OKLaboklab(45.05% 0.0614 -0.1585)
OKLCHoklch(45.05% 0.17 291.2)
XYZxyz(12.9832, 8.1016, 38.9021)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3AAA #8AAA3A
analogous
#3A52AA #5A3AAA #923AAA
triadic
#5A3AAA #AA5A3A #3AAA5A
tetradic
#5A3AAA #AA3A52 #8AAA3A #3AAA92
square
#5A3AAA #AA3A52 #8AAA3A #3AAA92
split-complementary
#5A3AAA #AA923A #52AA3A
monochromatic
#2A1B4F #422A7C #5A3AAA #795AC7 #9E88D6

Accessibility & contrast

On white

8.01
#5A3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5A3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3AAA
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3AAA#FFFFFF#000000##FFFFFF
##5A3AAA1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#41556D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a3aaa;
/* rgb */ color: rgb(90, 58, 170);
/* oklch */ color: oklch(45.0% 0.170 291.2);
Tailwind
colors: {
  custom: {
    50: '#8f72c4',
    500: '#5a3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5a3aaa;
$custom-light: #8f72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3aaa",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 257.143,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45046,
    "c": 0.16996,
    "h": 291.2
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#5A3AAA
secondary
#AEC17F
accent
#D94FB1
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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