#5A3ED3#5A3ED3

#5A3ED3 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.1% C 0.215 H 283.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5A3ED3
RGBrgb(90, 62, 211)
HSLhsl(251, 63%, 54%)
HSVhsv(251, 71%, 83%)
CMYKcmyk(57.3%, 70.6%, 0%, 17.3%)
CIE-LABlab(38.41, 50.96, -72.56)
CIE-LCHlch(38.41, 88.66, 305.08°)
OKLaboklab(49.13% 0.0511 -0.2089)
OKLCHoklch(49.13% 0.215 283.8)
XYZxyz(17.6933, 10.3209, 62.6752)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ED3 #B7D33E
analogous
#3E6CD3 #5A3ED3 #A43ED3
triadic
#5A3ED3 #D35A3E #3ED35A
tetradic
#5A3ED3 #D33E6C #B7D33E #3ED3A4
square
#5A3ED3 #D33E6C #B7D33E #3ED3A4
split-complementary
#5A3ED3 #D3A43E #6CD33E
monochromatic
#2E1C7B #4027AC #5A3ED3 #8570DE #AFA2EA

Accessibility & contrast

On white

6.85
#5A3ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5A3ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3ED3
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ED3#FFFFFF#000000##FFFFFF
##5A3ED31.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0055D0
Tritanopia (blue-blind)
#166684
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3ed3;
/* rgb */ color: rgb(90, 62, 211);
/* oklch */ color: oklch(49.1% 0.215 283.8);
Tailwind
colors: {
  custom: {
    50: '#9576e2',
    500: '#5a3ed3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ed3;
$custom-light: #9576e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ed3",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 211
  },
  "hsl": {
    "h": 251.275,
    "s": 62.869,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49128,
    "c": 0.21509,
    "h": 283.8
  },
  "luminance": 0.10322
}

Semantic roles & 50–950 ramp

primary
#5A3ED3
secondary
#CAD696
accent
#E642C7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0915
muted
#7E7B84

Preview Lab

Preview with #5A3ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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