#5C3EA2#5C3EA2

#5C3EA2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.2% C 0.154 H 293.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5C3EA2
RGBrgb(92, 62, 162)
HSLhsl(258, 45%, 44%)
HSVhsv(258, 62%, 64%)
CMYKcmyk(43.2%, 61.7%, 0%, 36.5%)
CIE-LABlab(34.66, 36.97, -49.81)
CIE-LCHlch(34.66, 62.03, 306.58°)
OKLaboklab(45.24% 0.0604 -0.1421)
OKLCHoklch(45.24% 0.154 293)
XYZxyz(12.6561, 8.3288, 35.1162)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3EA2 #84A23E
analogous
#3E52A2 #5C3EA2 #8E3EA2
triadic
#5C3EA2 #A25C3E #3EA25C
tetradic
#5C3EA2 #A23E52 #84A23E #3EA28E
square
#5C3EA2 #A23E52 #84A23E #3EA28E
split-complementary
#5C3EA2 #A28E3E #52A23E
monochromatic
#2A1C49 #432D76 #5C3EA2 #7B5CC1 #9F89D2

Accessibility & contrast

On white

7.88
#5C3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5C3EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3EA2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3EA2#FFFFFF#000000##FFFFFF
##5C3EA21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#49556A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c3ea2;
/* rgb */ color: rgb(92, 62, 162);
/* oklch */ color: oklch(45.2% 0.154 293.0);
Tailwind
colors: {
  custom: {
    50: '#8f75be',
    500: '#5c3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5c3ea2;
$custom-light: #8f75be;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3ea2",
  "rgb": {
    "r": 92,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 258,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45243,
    "c": 0.15437,
    "h": 293
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

primary
#5C3EA2
secondary
#AABC80
accent
#D453AE
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5C3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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