#5A3ACD#5A3ACD

#5A3ACD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.212 H 285.1°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5A3ACD
RGBrgb(90, 58, 205)
HSLhsl(253, 60%, 52%)
HSVhsv(253, 72%, 80%)
CMYKcmyk(56.1%, 71.7%, 0%, 19.6%)
CIE-LABlab(37.13, 51.31, -71.19)
CIE-LCHlch(37.13, 87.75, 305.78°)
OKLaboklab(48.05% 0.0555 -0.2049)
OKLCHoklch(48.05% 0.212 285.1)
XYZxyz(16.7456, 9.6066, 58.7176)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ACD #ADCD3A
analogous
#3A64CD #5A3ACD #A43ACD
triadic
#5A3ACD #CD5A3A #3ACD5A
tetradic
#5A3ACD #CD3A64 #ADCD3A #3ACDA4
square
#5A3ACD #CD3A64 #ADCD3A #3ACDA4
split-complementary
#5A3ACD #CDA43A #64CD3A
monochromatic
#2F1C70 #4329A1 #5A3ACD #836BD9 #AC9CE6

Accessibility & contrast

On white

7.19
#5A3ACD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5A3ACD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ACD
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ACD#FFFFFF#000000##FFFFFF
##5A3ACD1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#226280
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3acd;
/* rgb */ color: rgb(90, 58, 205);
/* oklch */ color: oklch(48.1% 0.212 285.1);
Tailwind
colors: {
  custom: {
    50: '#9473dd',
    500: '#5a3acd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3acd;
$custom-light: #9473dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3acd",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 205
  },
  "hsl": {
    "h": 253.061,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48052,
    "c": 0.21229,
    "h": 285.1
  },
  "luminance": 0.09608
}

Semantic roles & 50–950 ramp

primary
#5A3ACD
secondary
#C4D291
accent
#E345C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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