#5C3AAF#5C3AAF

#5C3AAF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.176 H 291.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5C3AAF
RGBrgb(92, 58, 175)
HSLhsl(257, 50%, 46%)
HSVhsv(257, 67%, 69%)
CMYKcmyk(47.4%, 66.9%, 0%, 31.4%)
CIE-LABlab(34.79, 42.98, -57.37)
CIE-LCHlch(34.79, 71.68, 306.84°)
OKLaboklab(45.65% 0.0636 -0.1643)
OKLCHoklch(45.65% 0.176 291.2)
XYZxyz(13.6624, 8.3961, 41.4499)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3AAF #8DAF3A
analogous
#3A52AF #5C3AAF #963AAF
triadic
#5C3AAF #AF5C3A #3AAF5C
tetradic
#5C3AAF #AF3A52 #8DAF3A #3AAF96
square
#5C3AAF #AF3A52 #8DAF3A #3AAF96
split-complementary
#5C3AAF #AF963A #52AF3A
monochromatic
#2C1C53 #442B81 #5C3AAF #7C5DC9 #A18BD9

Accessibility & contrast

On white

7.84
#5C3AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5C3AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3AAF
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3AAF#FFFFFF#000000##FFFFFF
##5C3AAF1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#42576F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c3aaf;
/* rgb */ color: rgb(92, 58, 175);
/* oklch */ color: oklch(45.7% 0.176 291.2);
Tailwind
colors: {
  custom: {
    50: '#9172c8',
    500: '#5c3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5c3aaf;
$custom-light: #9172c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3aaf",
  "rgb": {
    "r": 92,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 257.436,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45651,
    "c": 0.17616,
    "h": 291.2
  },
  "luminance": 0.08397
}

Semantic roles & 50–950 ramp

primary
#5C3AAF
secondary
#B0C382
accent
#DA4EB1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5C3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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