#5C3EAE#5C3EAE

#5C3EAE is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.2% C 0.170 H 290.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5C3EAE
RGBrgb(92, 62, 174)
HSLhsl(256, 47%, 46%)
HSVhsv(256, 64%, 68%)
CMYKcmyk(47.1%, 64.4%, 0%, 31.8%)
CIE-LABlab(35.55, 40.43, -55.55)
CIE-LCHlch(35.55, 68.71, 306.05°)
OKLaboklab(46.17% 0.0595 -0.1589)
OKLCHoklch(46.17% 0.17 290.5)
XYZxyz(13.7741, 8.7760, 41.0044)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3EAE #90AE3E
analogous
#3E58AE #5C3EAE #943EAE
triadic
#5C3EAE #AE5C3E #3EAE5C
tetradic
#5C3EAE #AE3E58 #90AE3E #3EAE94
square
#5C3EAE #AE3E58 #90AE3E #3EAE94
split-complementary
#5C3EAE #AE943E #58AE3E
monochromatic
#2C1E54 #442E81 #5C3EAE #7D62C7 #A28FD7

Accessibility & contrast

On white

7.62
#5C3EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5C3EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3EAE
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3EAE#FFFFFF#000000##FFFFFF
##5C3EAE1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#425970
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5c3eae;
/* rgb */ color: rgb(92, 62, 174);
/* oklch */ color: oklch(46.2% 0.170 290.5);
Tailwind
colors: {
  custom: {
    50: '#9175c7',
    500: '#5c3eae',
    950: '#000000',
  },
}
SCSS
$custom: #5c3eae;
$custom-light: #9175c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3eae",
  "rgb": {
    "r": 92,
    "g": 62,
    "b": 174
  },
  "hsl": {
    "h": 256.071,
    "s": 47.458,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46172,
    "c": 0.16971,
    "h": 290.5
  },
  "luminance": 0.08777
}

Semantic roles & 50–950 ramp

primary
#5C3EAE
secondary
#B2C286
accent
#D751B3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5C3EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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