#5A3EC3#5A3EC3

#5A3EC3 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.196 H 286.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5A3EC3
RGBrgb(90, 62, 195)
HSLhsl(253, 53%, 50%)
HSVhsv(253, 68%, 76%)
CMYKcmyk(53.8%, 68.2%, 0%, 23.5%)
CIE-LABlab(37.04, 46.23, -65.52)
CIE-LCHlch(37.04, 80.19, 305.21°)
OKLaboklab(47.72% 0.054 -0.1883)
OKLCHoklch(47.72% 0.196 286)
XYZxyz(15.7865, 9.5582, 52.6323)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EC3 #A7C33E
analogous
#3E64C3 #5A3EC3 #9D3EC3
triadic
#5A3EC3 #C35A3E #3EC35A
tetradic
#5A3EC3 #C33E64 #A7C33E #3EC39D
square
#5A3EC3 #C33E64 #A7C33E #3EC39D
split-complementary
#5A3EC3 #C39D3E #64C33E
monochromatic
#2F2067 #442E95 #5A3EC3 #826DD2 #AA9BE0

Accessibility & contrast

On white

7.21
#5A3EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5A3EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EC3
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EC3#FFFFFF#000000##FFFFFF
##5A3EC31.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#2E607B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3ec3;
/* rgb */ color: rgb(90, 62, 195);
/* oklch */ color: oklch(47.7% 0.196 286.0);
Tailwind
colors: {
  custom: {
    50: '#9375d6',
    500: '#5a3ec3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ec3;
$custom-light: #9375d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ec3",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 195
  },
  "hsl": {
    "h": 252.632,
    "s": 52.569,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47722,
    "c": 0.19587,
    "h": 286
  },
  "luminance": 0.09559
}

Semantic roles & 50–950 ramp

primary
#5A3EC3
secondary
#C0CC91
accent
#DC4CBE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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