#5A3ED2#5A3ED2

#5A3ED2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.0% C 0.214 H 283.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5A3ED2
RGBrgb(90, 62, 210)
HSLhsl(251, 62%, 53%)
HSVhsv(251, 70%, 82%)
CMYKcmyk(57.1%, 70.5%, 0%, 17.6%)
CIE-LABlab(38.32, 50.66, -72.12)
CIE-LCHlch(38.32, 88.14, 305.09°)
OKLaboklab(49.04% 0.0513 -0.2076)
OKLCHoklch(49.04% 0.214 283.9)
XYZxyz(17.5684, 10.2710, 62.0170)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ED2 #B6D23E
analogous
#3E6CD2 #5A3ED2 #A43ED2
triadic
#5A3ED2 #D25A3E #3ED25A
tetradic
#5A3ED2 #D23E6C #B6D23E #3ED2A4
square
#5A3ED2 #D23E6C #B6D23E #3ED2A4
split-complementary
#5A3ED2 #D2A43E #6CD23E
monochromatic
#2E1C79 #4128AB #5A3ED2 #8470DE #AFA1E9

Accessibility & contrast

On white

6.88
#5A3ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5A3ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3ED2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ED2#FFFFFF#000000##FFFFFF
##5A3ED21.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#196684
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3ed2;
/* rgb */ color: rgb(90, 62, 210);
/* oklch */ color: oklch(49.0% 0.214 283.9);
Tailwind
colors: {
  custom: {
    50: '#9576e1',
    500: '#5a3ed2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ed2;
$custom-light: #9576e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ed2",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 210
  },
  "hsl": {
    "h": 251.351,
    "s": 62.185,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49038,
    "c": 0.2139,
    "h": 283.9
  },
  "luminance": 0.10272
}

Semantic roles & 50–950 ramp

primary
#5A3ED2
secondary
#CAD696
accent
#E543C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5A3ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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