#5A3AC6#5A3AC6

#5A3AC6 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.4% C 0.204 H 286.2°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5A3AC6
RGBrgb(90, 58, 198)
HSLhsl(254, 55%, 50%)
HSVhsv(254, 71%, 78%)
CMYKcmyk(54.5%, 70.7%, 0%, 22.4%)
CIE-LABlab(36.51, 49.27, -68.13)
CIE-LCHlch(36.51, 84.08, 305.88°)
OKLaboklab(47.43% 0.0569 -0.1959)
OKLCHoklch(47.43% 0.204 286.2)
XYZxyz(15.9195, 9.2761, 54.3668)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3AC6 #A6C63A
analogous
#3A60C6 #5A3AC6 #A03AC6
triadic
#5A3AC6 #C65A3A #3AC65A
tetradic
#5A3AC6 #C63A60 #A6C63A #3AC6A0
square
#5A3AC6 #C63A60 #A6C63A #3AC6A0
split-complementary
#5A3AC6 #C6A03A #60C63A
monochromatic
#2F1E68 #442C97 #5A3AC6 #8269D4 #AA99E1

Accessibility & contrast

On white

7.35
#5A3AC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A3AC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3AC6
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3AC6#FFFFFF#000000##FFFFFF
##5A3AC61.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#0052C3
Tritanopia (blue-blind)
#2B5F7C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3ac6;
/* rgb */ color: rgb(90, 58, 198);
/* oklch */ color: oklch(47.4% 0.204 286.2);
Tailwind
colors: {
  custom: {
    50: '#9373d8',
    500: '#5a3ac6',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ac6;
$custom-light: #9373d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ac6",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 198
  },
  "hsl": {
    "h": 253.714,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47425,
    "c": 0.20403,
    "h": 286.2
  },
  "luminance": 0.09277
}

Semantic roles & 50–950 ramp

primary
#5A3AC6
secondary
#BFCD8F
accent
#DE49BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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