#5A3BBC#5A3BBC

#5A3BBC is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.191 H 287.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5A3BBC
RGBrgb(90, 59, 188)
HSLhsl(254, 52%, 48%)
HSVhsv(254, 69%, 74%)
CMYKcmyk(52.1%, 68.6%, 0%, 26.3%)
CIE-LABlab(35.85, 45.82, -63.35)
CIE-LCHlch(35.85, 78.19, 305.88°)
OKLaboklab(46.69% 0.0578 -0.1819)
OKLCHoklch(46.69% 0.191 287.6)
XYZxyz(14.8548, 8.9317, 48.5085)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BBC #9DBC3B
analogous
#3B5CBC #5A3BBC #9A3BBC
triadic
#5A3BBC #BC5A3B #3BBC5A
tetradic
#5A3BBC #BC3B5C #9DBC3B #3BBC9A
square
#5A3BBC #BC3B5C #9DBC3B #3BBC9A
split-complementary
#5A3BBC #BC9A3B #5CBC3B
monochromatic
#2D1E5F #442C8D #5A3BBC #7F65CF #A694DD

Accessibility & contrast

On white

7.54
#5A3BBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A3BBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BBC
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BBC#FFFFFF#000000##FFFFFF
##5A3BBC1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3bbc;
/* rgb */ color: rgb(90, 59, 188);
/* oklch */ color: oklch(46.7% 0.191 287.6);
Tailwind
colors: {
  custom: {
    50: '#9273d1',
    500: '#5a3bbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bbc;
$custom-light: #9273d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bbc",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 188
  },
  "hsl": {
    "h": 254.419,
    "s": 52.227,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46692,
    "c": 0.19088,
    "h": 287.6
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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