#5A3ECA#5A3ECA

#5A3ECA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.3% C 0.204 H 285.0°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5A3ECA
RGBrgb(90, 62, 202)
HSLhsl(252, 57%, 52%)
HSVhsv(252, 69%, 79%)
CMYKcmyk(55.4%, 69.3%, 0%, 20.8%)
CIE-LABlab(37.63, 48.30, -68.63)
CIE-LCHlch(37.63, 83.92, 305.14°)
OKLaboklab(48.33% 0.0528 -0.1974)
OKLCHoklch(48.33% 0.204 285)
XYZxyz(16.5965, 9.8822, 56.8986)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ECA #AECA3E
analogous
#3E68CA #5A3ECA #A03ECA
triadic
#5A3ECA #CA5A3E #3ECA5A
tetradic
#5A3ECA #CA3E68 #AECA3E #3ECAA0
square
#5A3ECA #CA3E68 #AECA3E #3ECAA0
split-complementary
#5A3ECA #CAA03E #68CA3E
monochromatic
#2F1F6F #432C9F #5A3ECA #836ED7 #AC9EE4

Accessibility & contrast

On white

7.06
#5A3ECA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5A3ECA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ECA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ECA#FFFFFF#000000##FFFFFF
##5A3ECA1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#26637F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3eca;
/* rgb */ color: rgb(90, 62, 202);
/* oklch */ color: oklch(48.3% 0.204 285.0);
Tailwind
colors: {
  custom: {
    50: '#9476db',
    500: '#5a3eca',
    950: '#000000',
  },
}
SCSS
$custom: #5a3eca;
$custom-light: #9476db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3eca",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 202
  },
  "hsl": {
    "h": 252,
    "s": 56.911,
    "l": 51.765
  },
  "oklch": {
    "l": 0.4833,
    "c": 0.20435,
    "h": 285
  },
  "luminance": 0.09883
}

Semantic roles & 50–950 ramp

primary
#5A3ECA
secondary
#C4D193
accent
#E048C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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