#5A3ACA#5A3ACA

#5A3ACA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.8% C 0.209 H 285.6°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5A3ACA
RGBrgb(90, 58, 202)
HSLhsl(253, 58%, 51%)
HSVhsv(253, 71%, 79%)
CMYKcmyk(55.4%, 71.3%, 0%, 20.8%)
CIE-LABlab(36.86, 50.44, -69.89)
CIE-LCHlch(36.86, 86.19, 305.82°)
OKLaboklab(47.78% 0.0561 -0.2011)
OKLCHoklch(47.78% 0.209 285.6)
XYZxyz(16.3870, 9.4631, 56.8287)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ACA #AACA3A
analogous
#3A62CA #5A3ACA #A23ACA
triadic
#5A3ACA #CA5A3A #3ACA5A
tetradic
#5A3ACA #CA3A62 #AACA3A #3ACAA2
square
#5A3ACA #CA3A62 #AACA3A #3ACAA2
split-complementary
#5A3ACA #CAA23A #62CA3A
monochromatic
#2F1D6C #442A9D #5A3ACA #826AD7 #AB9AE4

Accessibility & contrast

On white

7.26
#5A3ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A3ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ACA
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ACA#FFFFFF#000000##FFFFFF
##5A3ACA1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#26617E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3aca;
/* rgb */ color: rgb(90, 58, 202);
/* oklch */ color: oklch(47.8% 0.209 285.6);
Tailwind
colors: {
  custom: {
    50: '#9473db',
    500: '#5a3aca',
    950: '#000000',
  },
}
SCSS
$custom: #5a3aca;
$custom-light: #9473db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3aca",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 202
  },
  "hsl": {
    "h": 253.333,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47782,
    "c": 0.20877,
    "h": 285.6
  },
  "luminance": 0.09464
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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