#5C3EA5#5C3EA5

#5C3EA5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.5% C 0.158 H 292.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5C3EA5
RGBrgb(92, 62, 165)
HSLhsl(257, 45%, 45%)
HSVhsv(257, 62%, 65%)
CMYKcmyk(44.2%, 62.4%, 0%, 35.3%)
CIE-LABlab(34.88, 37.83, -51.26)
CIE-LCHlch(34.88, 63.71, 306.43°)
OKLaboklab(45.47% 0.0602 -0.1463)
OKLCHoklch(45.47% 0.158 292.4)
XYZxyz(12.9259, 8.4368, 36.5374)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3EA5 #87A53E
analogous
#3E54A5 #5C3EA5 #903EA5
triadic
#5C3EA5 #A55C3E #3EA55C
tetradic
#5C3EA5 #A53E54 #87A53E #3EA590
square
#5C3EA5 #A53E54 #87A53E #3EA590
split-complementary
#5C3EA5 #A5903E #54A53E
monochromatic
#2A1D4C #432D79 #5C3EA5 #7B5EC2 #9F8AD3

Accessibility & contrast

On white

7.81
#5C3EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5C3EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3EA5
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3EA5#FFFFFF#000000##FFFFFF
##5C3EA51.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#47566B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c3ea5;
/* rgb */ color: rgb(92, 62, 165);
/* oklch */ color: oklch(45.5% 0.158 292.4);
Tailwind
colors: {
  custom: {
    50: '#9075c0',
    500: '#5c3ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5c3ea5;
$custom-light: #9075c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3ea5",
  "rgb": {
    "r": 92,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 257.476,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45471,
    "c": 0.15824,
    "h": 292.4
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#5C3EA5
secondary
#ACBE81
accent
#D553AF
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5C3EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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