#5C3AAB#5C3AAB

#5C3AAB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.171 H 292.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5C3AAB
RGBrgb(92, 58, 171)
HSLhsl(258, 49%, 45%)
HSVhsv(258, 66%, 67%)
CMYKcmyk(46.2%, 66.1%, 0%, 32.9%)
CIE-LABlab(34.48, 41.83, -55.50)
CIE-LCHlch(34.48, 69.50, 307.01°)
OKLaboklab(45.33% 0.0641 -0.1588)
OKLCHoklch(45.33% 0.171 292)
XYZxyz(13.2753, 8.2413, 39.4114)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3AAB #89AB3A
analogous
#3A51AB #5C3AAB #943AAB
triadic
#5C3AAB #AB5C3A #3AAB5C
tetradic
#5C3AAB #AB3A51 #89AB3A #3AAB94
square
#5C3AAB #AB3A51 #89AB3A #3AAB94
split-complementary
#5C3AAB #AB943A #51AB3A
monochromatic
#2B1B50 #432A7D #5C3AAB #7C5BC7 #A089D7

Accessibility & contrast

On white

7.93
#5C3AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5C3AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3AAB
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3AAB#FFFFFF#000000##FFFFFF
##5C3AAB1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#44556D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c3aab;
/* rgb */ color: rgb(92, 58, 171);
/* oklch */ color: oklch(45.3% 0.171 292.0);
Tailwind
colors: {
  custom: {
    50: '#9172c5',
    500: '#5c3aab',
    950: '#000000',
  },
}
SCSS
$custom: #5c3aab;
$custom-light: #9172c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3aab",
  "rgb": {
    "r": 92,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 258.053,
    "s": 49.345,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45326,
    "c": 0.17122,
    "h": 292
  },
  "luminance": 0.08242
}

Semantic roles & 50–950 ramp

primary
#5C3AAB
secondary
#ADC180
accent
#D94FAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5C3AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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