#5A3EA2#5A3EA2

#5A3EA2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.0% C 0.154 H 291.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5A3EA2
RGBrgb(90, 62, 162)
HSLhsl(257, 45%, 44%)
HSVhsv(257, 62%, 64%)
CMYKcmyk(44.4%, 61.7%, 0%, 36.5%)
CIE-LABlab(34.45, 36.53, -50.16)
CIE-LCHlch(34.45, 62.05, 306.06°)
OKLaboklab(45.04% 0.0576 -0.1431)
OKLCHoklch(45.04% 0.154 291.9)
XYZxyz(12.4589, 8.2272, 35.1070)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EA2 #86A23E
analogous
#3E54A2 #5A3EA2 #8C3EA2
triadic
#5A3EA2 #A25A3E #3EA25A
tetradic
#5A3EA2 #A23E54 #86A23E #3EA28C
square
#5A3EA2 #A23E54 #86A23E #3EA28C
split-complementary
#5A3EA2 #A28C3E #54A23E
monochromatic
#291C49 #412D76 #5A3EA2 #795CC1 #9D89D2

Accessibility & contrast

On white

7.94
#5A3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A3EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EA2
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EA2#FFFFFF#000000##FFFFFF
##5A3EA21.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3ea2;
/* rgb */ color: rgb(90, 62, 162);
/* oklch */ color: oklch(45.0% 0.154 291.9);
Tailwind
colors: {
  custom: {
    50: '#8e74be',
    500: '#5a3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ea2;
$custom-light: #8e74be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ea2",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 256.8,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45043,
    "c": 0.1543,
    "h": 291.9
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#5A3EA2
secondary
#ABBC80
accent
#D453B0
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5A3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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