#5A3ABC#5A3ABC

#5A3ABC is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.192 H 287.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5A3ABC
RGBrgb(90, 58, 188)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 69%, 74%)
CMYKcmyk(52.1%, 69.1%, 0%, 26.3%)
CIE-LABlab(35.65, 46.37, -63.67)
CIE-LCHlch(35.65, 78.77, 306.06°)
OKLaboklab(46.55% 0.0587 -0.1829)
OKLCHoklch(46.55% 0.192 287.8)
XYZxyz(14.8039, 8.8299, 48.4915)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ABC #9CBC3A
analogous
#3A5BBC #5A3ABC #9B3ABC
triadic
#5A3ABC #BC5A3A #3ABC5A
tetradic
#5A3ABC #BC3A5B #9CBC3A #3ABC9B
square
#5A3ABC #BC3A5B #9CBC3A #3ABC9B
split-complementary
#5A3ABC #BC9B3A #5BBC3A
monochromatic
#2D1D5E #442C8D #5A3ABC #7E64CF #A593DE

Accessibility & contrast

On white

7.59
#5A3ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A3ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ABC
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ABC#FFFFFF#000000##FFFFFF
##5A3ABC1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#355B76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3abc;
/* rgb */ color: rgb(90, 58, 188);
/* oklch */ color: oklch(46.6% 0.192 287.8);
Tailwind
colors: {
  custom: {
    50: '#9273d1',
    500: '#5a3abc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3abc;
$custom-light: #9273d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3abc",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 188
  },
  "hsl": {
    "h": 254.769,
    "s": 52.846,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4655,
    "c": 0.19206,
    "h": 287.8
  },
  "luminance": 0.08831
}

Semantic roles & 50–950 ramp

primary
#5A3ABC
secondary
#B9C989
accent
#DC4CB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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