#5A3FA3#5A3FA3

#5A3FA3 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.3% C 0.154 H 291.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5A3FA3
RGBrgb(90, 63, 163)
HSLhsl(256, 44%, 44%)
HSVhsv(256, 61%, 64%)
CMYKcmyk(44.8%, 61.3%, 0%, 36.1%)
CIE-LABlab(34.75, 36.23, -50.28)
CIE-LCHlch(34.75, 61.97, 305.77°)
OKLaboklab(45.28% 0.0564 -0.1435)
OKLCHoklch(45.28% 0.154 291.5)
XYZxyz(12.6030, 8.3726, 35.5953)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FA3 #88A33F
analogous
#3F56A3 #5A3FA3 #8C3FA3
triadic
#5A3FA3 #A35A3F #3FA35A
tetradic
#5A3FA3 #A33F56 #88A33F #3FA38C
square
#5A3FA3 #A33F56 #88A33F #3FA38C
split-complementary
#5A3FA3 #A38C3F #56A33F
monochromatic
#291D4B #422E77 #5A3FA3 #795EC1 #9E8AD2

Accessibility & contrast

On white

7.85
#5A3FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A3FA3
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FA3#FFFFFF#000000##FFFFFF
##5A3FA31.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#45566B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a3fa3;
/* rgb */ color: rgb(90, 63, 163);
/* oklch */ color: oklch(45.3% 0.154 291.5);
Tailwind
colors: {
  custom: {
    50: '#8e75bf',
    500: '#5a3fa3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fa3;
$custom-light: #8e75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fa3",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 163
  },
  "hsl": {
    "h": 256.2,
    "s": 44.248,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45282,
    "c": 0.15419,
    "h": 291.5
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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