#5C3AA8#5C3AA8

#5C3AA8 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.1% C 0.168 H 292.6°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5C3AA8
RGBrgb(92, 58, 168)
HSLhsl(259, 49%, 44%)
HSVhsv(259, 65%, 66%)
CMYKcmyk(45.2%, 65.5%, 0%, 34.1%)
CIE-LABlab(34.25, 40.98, -54.08)
CIE-LCHlch(34.25, 67.85, 307.15°)
OKLaboklab(45.09% 0.0644 -0.1546)
OKLCHoklch(45.09% 0.168 292.6)
XYZxyz(12.9926, 8.1282, 37.9225)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3AA8 #86A83A
analogous
#3A4FA8 #5C3AA8 #933AA8
triadic
#5C3AA8 #A85C3A #3AA85C
tetradic
#5C3AA8 #A83A4F #86A83A #3AA893
square
#5C3AA8 #A83A4F #86A83A #3AA893
split-complementary
#5C3AA8 #A8933A #4FA83A
monochromatic
#2A1B4D #432A7B #5C3AA8 #7B59C6 #9F87D6

Accessibility & contrast

On white

8.00
#5C3AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5C3AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3AA8
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3AA8#FFFFFF#000000##FFFFFF
##5C3AA81.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#46546C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c3aa8;
/* rgb */ color: rgb(92, 58, 168);
/* oklch */ color: oklch(45.1% 0.168 292.6);
Tailwind
colors: {
  custom: {
    50: '#9072c3',
    500: '#5c3aa8',
    950: '#000000',
  },
}
SCSS
$custom: #5c3aa8;
$custom-light: #9072c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3aa8",
  "rgb": {
    "r": 92,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 258.545,
    "s": 48.673,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45086,
    "c": 0.1675,
    "h": 292.6
  },
  "luminance": 0.08129
}

Semantic roles & 50–950 ramp

primary
#5C3AA8
secondary
#ABC07E
accent
#D850AE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5C3AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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