#5C3EA4#5C3EA4

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

Color values

HEX#5C3EA4
RGBrgb(92, 62, 164)
HSLhsl(258, 45%, 44%)
HSVhsv(258, 62%, 64%)
CMYKcmyk(43.9%, 62.2%, 0%, 35.7%)
CIE-LABlab(34.80, 37.54, -50.78)
CIE-LCHlch(34.80, 63.15, 306.48°)
OKLaboklab(45.39% 0.0603 -0.1449)
OKLCHoklch(45.39% 0.157 292.6)
XYZxyz(12.8353, 8.4005, 36.0600)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3EA4 #86A43E
analogous
#3E53A4 #5C3EA4 #8F3EA4
triadic
#5C3EA4 #A45C3E #3EA45C
tetradic
#5C3EA4 #A43E53 #86A43E #3EA48F
square
#5C3EA4 #A43E53 #86A43E #3EA48F
split-complementary
#5C3EA4 #A48F3E #53A43E
monochromatic
#2A1C4B #432D78 #5C3EA4 #7B5DC2 #9F8AD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C3EA4#FFFFFF#000000##FFFFFF
##5C3EA41.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)
#0053A7
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#48556B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c3ea4;
/* rgb */ color: rgb(92, 62, 164);
/* oklch */ color: oklch(45.4% 0.157 292.6);
Tailwind
colors: {
  custom: {
    50: '#9075c0',
    500: '#5c3ea4',
    950: '#000000',
  },
}
SCSS
$custom: #5c3ea4;
$custom-light: #9075c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3ea4",
  "rgb": {
    "r": 92,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 257.647,
    "s": 45.133,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45394,
    "c": 0.15695,
    "h": 292.6
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C3EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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