#5A3EBA#5A3EBA

#5A3EBA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.0% C 0.185 H 287.4°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5A3EBA
RGBrgb(90, 62, 186)
HSLhsl(254, 50%, 49%)
HSVhsv(254, 67%, 73%)
CMYKcmyk(51.6%, 66.7%, 0%, 27.1%)
CIE-LABlab(36.30, 43.57, -61.45)
CIE-LCHlch(36.30, 75.33, 305.34°)
OKLaboklab(46.96% 0.0553 -0.1763)
OKLCHoklch(46.96% 0.185 287.4)
XYZxyz(14.7994, 9.1634, 47.4338)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EBA #9EBA3E
analogous
#3E60BA #5A3EBA #983EBA
triadic
#5A3EBA #BA5A3E #3EBA5A
tetradic
#5A3EBA #BA3E60 #9EBA3E #3EBA98
square
#5A3EBA #BA3E60 #9EBA3E #3EBA98
split-complementary
#5A3EBA #BA983E #60BA3E
monochromatic
#2E1F5E #442F8C #5A3EBA #7F68CD #A696DC

Accessibility & contrast

On white

7.41
#5A3EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A3EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EBA
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EBA#FFFFFF#000000##FFFFFF
##5A3EBA1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#365D77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3eba;
/* rgb */ color: rgb(90, 62, 186);
/* oklch */ color: oklch(47.0% 0.185 287.4);
Tailwind
colors: {
  custom: {
    50: '#9175d0',
    500: '#5a3eba',
    950: '#000000',
  },
}
SCSS
$custom: #5a3eba;
$custom-light: #9175d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3eba",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 253.548,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4696,
    "c": 0.18479,
    "h": 287.4
  },
  "luminance": 0.09164
}

Semantic roles & 50–950 ramp

primary
#5A3EBA
secondary
#BAC88C
accent
#DA4EBA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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