#5A3EC2#5A3EC2

#5A3EC2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.6% C 0.195 H 286.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5A3EC2
RGBrgb(90, 62, 194)
HSLhsl(253, 52%, 50%)
HSVhsv(253, 68%, 76%)
CMYKcmyk(53.6%, 68%, 0%, 23.9%)
CIE-LABlab(36.95, 45.94, -65.07)
CIE-LCHlch(36.95, 79.65, 305.22°)
OKLaboklab(47.64% 0.0541 -0.187)
OKLCHoklch(47.64% 0.195 286.1)
XYZxyz(15.6738, 9.5131, 52.0388)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EC2 #A6C23E
analogous
#3E64C2 #5A3EC2 #9C3EC2
triadic
#5A3EC2 #C25A3E #3EC25A
tetradic
#5A3EC2 #C23E64 #A6C23E #3EC29C
square
#5A3EC2 #C23E64 #A6C23E #3EC29C
split-complementary
#5A3EC2 #C29C3E #64C23E
monochromatic
#2F2066 #442F94 #5A3EC2 #826DD1 #AA9BDF

Accessibility & contrast

On white

7.23
#5A3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A3EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EC2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EC2#FFFFFF#000000##FFFFFF
##5A3EC21.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#2F607B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3ec2;
/* rgb */ color: rgb(90, 62, 194);
/* oklch */ color: oklch(47.6% 0.195 286.1);
Tailwind
colors: {
  custom: {
    50: '#9275d5',
    500: '#5a3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ec2;
$custom-light: #9275d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ec2",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 252.727,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47637,
    "c": 0.19465,
    "h": 286.1
  },
  "luminance": 0.09514
}

Semantic roles & 50–950 ramp

primary
#5A3EC2
secondary
#BFCB90
accent
#DB4CBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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