#5A3EAD#5A3EAD

#5A3EAD is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.168 H 289.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5A3EAD
RGBrgb(90, 62, 173)
HSLhsl(255, 47%, 46%)
HSVhsv(255, 64%, 68%)
CMYKcmyk(48%, 64.2%, 0%, 32.2%)
CIE-LABlab(35.27, 39.74, -55.41)
CIE-LCHlch(35.27, 68.19, 305.65°)
OKLaboklab(45.9% 0.0568 -0.1586)
OKLCHoklch(45.9% 0.168 289.7)
XYZxyz(13.4797, 8.6355, 40.4836)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EAD #91AD3E
analogous
#3E59AD #5A3EAD #913EAD
triadic
#5A3EAD #AD5A3E #3EAD5A
tetradic
#5A3EAD #AD3E59 #91AD3E #3EAD91
square
#5A3EAD #AD3E59 #91AD3E #3EAD91
split-complementary
#5A3EAD #AD913E #59AD3E
monochromatic
#2B1E53 #432E80 #5A3EAD #7B62C7 #A18FD7

Accessibility & contrast

On white

7.70
#5A3EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5A3EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EAD
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EAD#FFFFFF#000000##FFFFFF
##5A3EAD1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#3F5870
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3ead;
/* rgb */ color: rgb(90, 62, 173);
/* oklch */ color: oklch(45.9% 0.168 289.7);
Tailwind
colors: {
  custom: {
    50: '#8f75c6',
    500: '#5a3ead',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ead;
$custom-light: #8f75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ead",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 173
  },
  "hsl": {
    "h": 255.135,
    "s": 47.234,
    "l": 46.078
  },
  "oklch": {
    "l": 0.459,
    "c": 0.16846,
    "h": 289.7
  },
  "luminance": 0.08636
}

Semantic roles & 50–950 ramp

primary
#5A3EAD
secondary
#B2C285
accent
#D751B5
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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