#5A3EC0#5A3EC0

#5A3EC0 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.5% C 0.192 H 286.4°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5A3EC0
RGBrgb(90, 62, 192)
HSLhsl(253, 51%, 50%)
HSVhsv(253, 68%, 75%)
CMYKcmyk(53.1%, 67.7%, 0%, 24.7%)
CIE-LABlab(36.79, 45.35, -64.17)
CIE-LCHlch(36.79, 78.58, 305.25°)
OKLaboklab(47.47% 0.0544 -0.1843)
OKLCHoklch(47.47% 0.192 286.4)
XYZxyz(15.4507, 9.4239, 50.8638)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EC0 #A4C03E
analogous
#3E63C0 #5A3EC0 #9B3EC0
triadic
#5A3EC0 #C05A3E #3EC05A
tetradic
#5A3EC0 #C03E63 #A4C03E #3EC09B
square
#5A3EC0 #C03E63 #A4C03E #3EC09B
split-complementary
#5A3EC0 #C09B3E #63C03E
monochromatic
#2F2063 #442F92 #5A3EC0 #816CCF #A99ADE

Accessibility & contrast

On white

7.28
#5A3EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A3EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EC0
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EC0#FFFFFF#000000##FFFFFF
##5A3EC01.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#315F7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3ec0;
/* rgb */ color: rgb(90, 62, 192);
/* oklch */ color: oklch(47.5% 0.192 286.4);
Tailwind
colors: {
  custom: {
    50: '#9275d4',
    500: '#5a3ec0',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ec0;
$custom-light: #9275d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ec0",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 192
  },
  "hsl": {
    "h": 252.923,
    "s": 51.181,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47466,
    "c": 0.1922,
    "h": 286.4
  },
  "luminance": 0.09425
}

Semantic roles & 50–950 ramp

primary
#5A3EC0
secondary
#BECA8F
accent
#DB4DBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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