#5C2AA6#5C2AA6

#5C2AA6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.185 H 295.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5C2AA6
RGBrgb(92, 42, 166)
HSLhsl(264, 60%, 41%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(44.6%, 74.7%, 0%, 34.9%)
CIE-LABlab(31.08, 48.77, -58.05)
CIE-LCHlch(31.08, 75.81, 310.04°)
OKLaboklab(42.77% 0.0808 -0.1662)
OKLCHoklch(42.77% 0.185 295.9)
XYZxyz(12.1227, 6.6841, 36.7205)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AA6 #74A62A
analogous
#2A36A6 #5C2AA6 #9A2AA6
triadic
#5C2AA6 #A65C2A #2AA65C
tetradic
#5C2AA6 #A62A36 #74A62A #2AA69A
square
#5C2AA6 #A62A36 #74A62A #2AA69A
split-complementary
#5C2AA6 #A69A2A #36A62A
monochromatic
#261144 #411E75 #5C2AA6 #793FCE #9B70DB

Accessibility & contrast

On white

8.99
#5C2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5C2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2AA6
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AA6#FFFFFF#000000##FFFFFF
##5C2AA61.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#484B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2aa6;
/* rgb */ color: rgb(92, 42, 166);
/* oklch */ color: oklch(42.8% 0.185 295.9);
Tailwind
colors: {
  custom: {
    50: '#9169c1',
    500: '#5c2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aa6;
$custom-light: #9169c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aa6",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 264.194,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42771,
    "c": 0.1848,
    "h": 295.9
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#5C2AA6
secondary
#9EC26A
accent
#E345A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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