#5C3AAA#5C3AAA

#5C3AAA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.2% C 0.170 H 292.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5C3AAA
RGBrgb(92, 58, 170)
HSLhsl(258, 49%, 45%)
HSVhsv(258, 66%, 67%)
CMYKcmyk(45.9%, 65.9%, 0%, 33.3%)
CIE-LABlab(34.40, 41.55, -55.03)
CIE-LCHlch(34.40, 68.95, 307.05°)
OKLaboklab(45.25% 0.0642 -0.1574)
OKLCHoklch(45.25% 0.17 292.2)
XYZxyz(13.1804, 8.2033, 38.9113)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3AAA #88AA3A
analogous
#3A50AA #5C3AAA #943AAA
triadic
#5C3AAA #AA5C3A #3AAA5C
tetradic
#5C3AAA #AA3A50 #88AA3A #3AAA94
square
#5C3AAA #AA3A50 #88AA3A #3AAA94
split-complementary
#5C3AAA #AA943A #50AA3A
monochromatic
#2B1B4F #432A7C #5C3AAA #7B5AC7 #A088D6

Accessibility & contrast

On white

7.95
#5C3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5C3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3AAA
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3AAA#FFFFFF#000000##FFFFFF
##5C3AAA1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#45556D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c3aaa;
/* rgb */ color: rgb(92, 58, 170);
/* oklch */ color: oklch(45.2% 0.170 292.2);
Tailwind
colors: {
  custom: {
    50: '#9172c4',
    500: '#5c3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5c3aaa;
$custom-light: #9172c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3aaa",
  "rgb": {
    "r": 92,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 258.214,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45246,
    "c": 0.16999,
    "h": 292.2
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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