#5A3EB5#5A3EB5

#5A3EB5 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.5% C 0.179 H 288.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5A3EB5
RGBrgb(90, 62, 181)
HSLhsl(254, 49%, 48%)
HSVhsv(254, 66%, 71%)
CMYKcmyk(50.3%, 65.7%, 0%, 29%)
CIE-LABlab(35.90, 42.10, -59.15)
CIE-LCHlch(35.90, 72.60, 305.44°)
OKLaboklab(46.55% 0.0559 -0.1696)
OKLCHoklch(46.55% 0.179 288.3)
XYZxyz(14.2771, 8.9545, 44.6832)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EB5 #99B53E
analogous
#3E5DB5 #5A3EB5 #963EB5
triadic
#5A3EB5 #B55A3E #3EB55A
tetradic
#5A3EB5 #B53E5D #99B53E #3EB596
square
#5A3EB5 #B53E5D #99B53E #3EB596
split-complementary
#5A3EB5 #B5963E #5DB53E
monochromatic
#2D1F5A #432E87 #5A3EB5 #7D66CA #A493DA

Accessibility & contrast

On white

7.52
#5A3EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A3EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EB5
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EB5#FFFFFF#000000##FFFFFF
##5A3EB51.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#3A5B74
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3eb5;
/* rgb */ color: rgb(90, 62, 181);
/* oklch */ color: oklch(46.5% 0.179 288.3);
Tailwind
colors: {
  custom: {
    50: '#9175cc',
    500: '#5a3eb5',
    950: '#000000',
  },
}
SCSS
$custom: #5a3eb5;
$custom-light: #9175cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3eb5",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 254.118,
    "s": 48.971,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46546,
    "c": 0.17856,
    "h": 288.3
  },
  "luminance": 0.08955
}

Semantic roles & 50–950 ramp

primary
#5A3EB5
secondary
#B7C589
accent
#D94FB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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