#5A3AAF#5A3AAF

#5A3AAF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.176 H 290.2°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5A3AAF
RGBrgb(90, 58, 175)
HSLhsl(256, 50%, 46%)
HSVhsv(256, 67%, 69%)
CMYKcmyk(48.6%, 66.9%, 0%, 31.4%)
CIE-LABlab(34.59, 42.60, -57.72)
CIE-LCHlch(34.59, 71.73, 306.43°)
OKLaboklab(45.45% 0.0607 -0.1654)
OKLCHoklch(45.45% 0.176 290.2)
XYZxyz(13.4652, 8.2944, 41.4406)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3AAF #8FAF3A
analogous
#3A54AF #5A3AAF #943AAF
triadic
#5A3AAF #AF5A3A #3AAF5A
tetradic
#5A3AAF #AF3A54 #8FAF3A #3AAF94
square
#5A3AAF #AF3A54 #8FAF3A #3AAF94
split-complementary
#5A3AAF #AF943A #54AF3A
monochromatic
#2B1C53 #422B81 #5A3AAF #7B5DC9 #A08BD9

Accessibility & contrast

On white

7.90
#5A3AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5A3AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3AAF
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3AAF#FFFFFF#000000##FFFFFF
##5A3AAF1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#3E576F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a3aaf;
/* rgb */ color: rgb(90, 58, 175);
/* oklch */ color: oklch(45.5% 0.176 290.2);
Tailwind
colors: {
  custom: {
    50: '#9072c8',
    500: '#5a3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3aaf;
$custom-light: #9072c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3aaf",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 256.41,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45454,
    "c": 0.17617,
    "h": 290.2
  },
  "luminance": 0.08295
}

Semantic roles & 50–950 ramp

primary
#5A3AAF
secondary
#B1C382
accent
#DA4EB4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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