#5A3DAE#5A3DAE

#5A3DAE is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.8% C 0.171 H 289.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5A3DAE
RGBrgb(90, 61, 174)
HSLhsl(255, 48%, 46%)
HSVhsv(255, 65%, 68%)
CMYKcmyk(48.3%, 64.9%, 0%, 31.8%)
CIE-LABlab(35.14, 40.61, -56.23)
CIE-LCHlch(35.14, 69.36, 305.84°)
OKLaboklab(45.83% 0.0578 -0.161)
OKLCHoklch(45.83% 0.171 289.7)
XYZxyz(13.5230, 8.5666, 40.9772)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DAE #91AE3D
analogous
#3D58AE #5A3DAE #923DAE
triadic
#5A3DAE #AE5A3D #3DAE5A
tetradic
#5A3DAE #AE3D58 #91AE3D #3DAE92
square
#5A3DAE #AE3D58 #91AE3D #3DAE92
split-complementary
#5A3DAE #AE923D #58AE3D
monochromatic
#2B1D53 #432D81 #5A3DAE #7B61C8 #A18ED7

Accessibility & contrast

On white

7.74
#5A3DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5A3DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DAE
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DAE#FFFFFF#000000##FFFFFF
##5A3DAE1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#3F5870
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3dae;
/* rgb */ color: rgb(90, 61, 174);
/* oklch */ color: oklch(45.8% 0.171 289.7);
Tailwind
colors: {
  custom: {
    50: '#9074c7',
    500: '#5a3dae',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dae;
$custom-light: #9074c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dae",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 174
  },
  "hsl": {
    "h": 255.398,
    "s": 48.085,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45825,
    "c": 0.17104,
    "h": 289.7
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#5A3DAE
secondary
#B2C285
accent
#D850B5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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