#5A3ED1#5A3ED1

#5A3ED1 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.213 H 284.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5A3ED1
RGBrgb(90, 62, 209)
HSLhsl(251, 62%, 53%)
HSVhsv(251, 70%, 82%)
CMYKcmyk(56.9%, 70.3%, 0%, 18%)
CIE-LABlab(38.24, 50.37, -71.69)
CIE-LCHlch(38.24, 87.61, 305.09°)
OKLaboklab(48.95% 0.0515 -0.2064)
OKLCHoklch(48.95% 0.213 284)
XYZxyz(17.4442, 10.2213, 61.3629)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ED1 #B5D13E
analogous
#3E6BD1 #5A3ED1 #A43ED1
triadic
#5A3ED1 #D15A3E #3ED15A
tetradic
#5A3ED1 #D13E6B #B5D13E #3ED1A4
square
#5A3ED1 #D13E6B #B5D13E #3ED1A4
split-complementary
#5A3ED1 #D1A43E #6BD13E
monochromatic
#2E1D78 #4128A9 #5A3ED1 #846FDD #AFA1E9

Accessibility & contrast

On white

6.90
#5A3ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5A3ED1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3ED1
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ED1#FFFFFF#000000##FFFFFF
##5A3ED11.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0055CE
Tritanopia (blue-blind)
#1B6583
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3ed1;
/* rgb */ color: rgb(90, 62, 209);
/* oklch */ color: oklch(48.9% 0.213 284.0);
Tailwind
colors: {
  custom: {
    50: '#9576e0',
    500: '#5a3ed1',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ed1;
$custom-light: #9576e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ed1",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 209
  },
  "hsl": {
    "h": 251.429,
    "s": 61.506,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48949,
    "c": 0.21271,
    "h": 284
  },
  "luminance": 0.10222
}

Semantic roles & 50–950 ramp

primary
#5A3ED1
secondary
#C9D596
accent
#E543C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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