#5C3CAC#5C3CAC

#5C3CAC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.7% C 0.170 H 291.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5C3CAC
RGBrgb(92, 60, 172)
HSLhsl(257, 48%, 45%)
HSVhsv(257, 65%, 67%)
CMYKcmyk(46.5%, 65.1%, 0%, 32.5%)
CIE-LABlab(34.97, 40.99, -55.29)
CIE-LCHlch(34.97, 68.83, 306.55°)
OKLaboklab(45.71% 0.0618 -0.1582)
OKLCHoklch(45.71% 0.17 291.3)
XYZxyz(13.4738, 8.4851, 39.9496)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3CAC #8CAC3C
analogous
#3C54AC #5C3CAC #943CAC
triadic
#5C3CAC #AC5C3C #3CAC5C
tetradic
#5C3CAC #AC3C54 #8CAC3C #3CAC94
square
#5C3CAC #AC3C54 #8CAC3C #3CAC94
split-complementary
#5C3CAC #AC943C #54AC3C
monochromatic
#2B1C51 #442C7F #5C3CAC #7C5EC7 #A18CD7

Accessibility & contrast

On white

7.79
#5C3CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5C3CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3CAC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3CAC#FFFFFF#000000##FFFFFF
##5C3CAC1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#44576E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c3cac;
/* rgb */ color: rgb(92, 60, 172);
/* oklch */ color: oklch(45.7% 0.170 291.3);
Tailwind
colors: {
  custom: {
    50: '#9174c6',
    500: '#5c3cac',
    950: '#000000',
  },
}
SCSS
$custom: #5c3cac;
$custom-light: #9174c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3cac",
  "rgb": {
    "r": 92,
    "g": 60,
    "b": 172
  },
  "hsl": {
    "h": 257.143,
    "s": 48.276,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45707,
    "c": 0.16983,
    "h": 291.3
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#5C3CAC
secondary
#AFC182
accent
#D850B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5C3CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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