#5A3FA2#5A3FA2

#5A3FA2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.2% C 0.153 H 291.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5A3FA2
RGBrgb(90, 63, 162)
HSLhsl(256, 44%, 44%)
HSVhsv(256, 61%, 64%)
CMYKcmyk(44.4%, 61.1%, 0%, 36.5%)
CIE-LABlab(34.67, 35.94, -49.80)
CIE-LCHlch(34.67, 61.41, 305.82°)
OKLaboklab(45.21% 0.0565 -0.1421)
OKLCHoklch(45.21% 0.153 291.7)
XYZxyz(12.5137, 8.3369, 35.1253)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FA2 #87A23F
analogous
#3F56A2 #5A3FA2 #8C3FA2
triadic
#5A3FA2 #A25A3F #3FA25A
tetradic
#5A3FA2 #A23F56 #87A23F #3FA28C
square
#5A3FA2 #A23F56 #87A23F #3FA28C
split-complementary
#5A3FA2 #A28C3F #56A23F
monochromatic
#291D4A #422E76 #5A3FA2 #795EC0 #9D8AD1

Accessibility & contrast

On white

7.87
#5A3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5A3FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FA2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FA2#FFFFFF#000000##FFFFFF
##5A3FA21.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#45556A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a3fa2;
/* rgb */ color: rgb(90, 63, 162);
/* oklch */ color: oklch(45.2% 0.153 291.7);
Tailwind
colors: {
  custom: {
    50: '#8e75be',
    500: '#5a3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fa2;
$custom-light: #8e75be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fa2",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 256.364,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45206,
    "c": 0.15288,
    "h": 291.7
  },
  "luminance": 0.08337
}

Semantic roles & 50–950 ramp

primary
#5A3FA2
secondary
#ACBC81
accent
#D454B1
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5A3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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