#5A3ACB#5A3ACB

#5A3ACB is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.210 H 285.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5A3ACB
RGBrgb(90, 58, 203)
HSLhsl(253, 58%, 51%)
HSVhsv(253, 71%, 80%)
CMYKcmyk(55.7%, 71.4%, 0%, 20.4%)
CIE-LABlab(36.95, 50.73, -70.32)
CIE-LCHlch(36.95, 86.71, 305.80°)
OKLaboklab(47.87% 0.0559 -0.2024)
OKLCHoklch(47.87% 0.21 285.4)
XYZxyz(16.5057, 9.5106, 57.4543)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ACB #ABCB3A
analogous
#3A62CB #5A3ACB #A23ACB
triadic
#5A3ACB #CB5A3A #3ACB5A
tetradic
#5A3ACB #CB3A62 #ABCB3A #3ACBA2
square
#5A3ACB #CB3A62 #ABCB3A #3ACBA2
split-complementary
#5A3ACB #CBA23A #62CB3A
monochromatic
#2F1D6E #432A9E #5A3ACB #836AD8 #AB9BE5

Accessibility & contrast

On white

7.24
#5A3ACB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A3ACB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ACB
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ACB#FFFFFF#000000##FFFFFF
##5A3ACB1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#25617F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3acb;
/* rgb */ color: rgb(90, 58, 203);
/* oklch */ color: oklch(47.9% 0.210 285.4);
Tailwind
colors: {
  custom: {
    50: '#9473dc',
    500: '#5a3acb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3acb;
$custom-light: #9473dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3acb",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 203
  },
  "hsl": {
    "h": 253.241,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47871,
    "c": 0.20994,
    "h": 285.4
  },
  "luminance": 0.09512
}

Semantic roles & 50–950 ramp

primary
#5A3ACB
secondary
#C2D090
accent
#E146BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3ACB

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

Preview Lab → · Contrast checker → · Palette generator →

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