#5A3ED5#5A3ED5

#5A3ED5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.3% C 0.217 H 283.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5A3ED5
RGBrgb(90, 62, 213)
HSLhsl(251, 64%, 54%)
HSVhsv(251, 71%, 84%)
CMYKcmyk(57.7%, 70.9%, 0%, 16.5%)
CIE-LABlab(38.59, 51.54, -73.42)
CIE-LCHlch(38.59, 89.71, 305.07°)
OKLaboklab(49.31% 0.0508 -0.2114)
OKLCHoklch(49.31% 0.217 283.5)
XYZxyz(17.9456, 10.4219, 64.0039)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ED5 #B9D53E
analogous
#3E6ED5 #5A3ED5 #A63ED5
triadic
#5A3ED5 #D55A3E #3ED55A
tetradic
#5A3ED5 #D53E6E #B9D53E #3ED5A6
square
#5A3ED5 #D53E6E #B9D53E #3ED5A6
split-complementary
#5A3ED5 #D5A63E #6ED53E
monochromatic
#2D1B7D #4026B0 #5A3ED5 #8570E0 #B0A3EB

Accessibility & contrast

On white

6.81
#5A3ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A3ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3ED5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ED5#FFFFFF#000000##FFFFFF
##5A3ED51.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0056D2
Tritanopia (blue-blind)
#116785
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a3ed5;
/* rgb */ color: rgb(90, 62, 213);
/* oklch */ color: oklch(49.3% 0.217 283.5);
Tailwind
colors: {
  custom: {
    50: '#9576e3',
    500: '#5a3ed5',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ed5;
$custom-light: #9576e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ed5",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 213
  },
  "hsl": {
    "h": 251.126,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49307,
    "c": 0.21745,
    "h": 283.5
  },
  "luminance": 0.10423
}

Semantic roles & 50–950 ramp

primary
#5A3ED5
secondary
#CCD897
accent
#E741C8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A3ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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