#5A3FAE#5A3FAE

#5A3FAE is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.1% C 0.168 H 289.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5A3FAE
RGBrgb(90, 63, 174)
HSLhsl(255, 47%, 46%)
HSVhsv(255, 64%, 68%)
CMYKcmyk(48.3%, 63.8%, 0%, 31.8%)
CIE-LABlab(35.57, 39.46, -55.53)
CIE-LCHlch(35.57, 68.12, 305.39°)
OKLaboklab(46.14% 0.0556 -0.1589)
OKLCHoklch(46.14% 0.168 289.3)
XYZxyz(13.6317, 8.7841, 41.0134)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FAE #93AE3F
analogous
#3F5CAE #5A3FAE #923FAE
triadic
#5A3FAE #AE5A3F #3FAE5A
tetradic
#5A3FAE #AE3F5C #93AE3F #3FAE92
square
#5A3FAE #AE3F5C #93AE3F #3FAE92
split-complementary
#5A3FAE #AE923F #5CAE3F
monochromatic
#2C1E54 #432F81 #5A3FAE #7C64C7 #A290D7

Accessibility & contrast

On white

7.62
#5A3FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A3FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FAE
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FAE#FFFFFF#000000##FFFFFF
##5A3FAE1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#3E5970
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3fae;
/* rgb */ color: rgb(90, 63, 174);
/* oklch */ color: oklch(46.1% 0.168 289.3);
Tailwind
colors: {
  custom: {
    50: '#9075c7',
    500: '#5a3fae',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fae;
$custom-light: #9075c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fae",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 174
  },
  "hsl": {
    "h": 254.595,
    "s": 46.835,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.1684,
    "h": 289.3
  },
  "luminance": 0.08785
}

Semantic roles & 50–950 ramp

primary
#5A3FAE
secondary
#B4C287
accent
#D651B6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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