#5C2AA4#5C2AA4

#5C2AA4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.183 H 296.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5C2AA4
RGBrgb(92, 42, 164)
HSLhsl(265, 59%, 40%)
HSVhsv(265, 74%, 64%)
CMYKcmyk(43.9%, 74.4%, 0%, 35.7%)
CIE-LABlab(30.91, 48.24, -57.12)
CIE-LCHlch(30.91, 74.77, 310.18°)
OKLaboklab(42.6% 0.0813 -0.1635)
OKLCHoklch(42.6% 0.183 296.4)
XYZxyz(11.9407, 6.6113, 35.7618)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AA4 #72A42A
analogous
#2A35A4 #5C2AA4 #992AA4
triadic
#5C2AA4 #A45C2A #2AA45C
tetradic
#5C2AA4 #A42A35 #72A42A #2AA499
square
#5C2AA4 #A42A35 #72A42A #2AA499
split-complementary
#5C2AA4 #A4992A #35A42A
monochromatic
#251143 #411E73 #5C2AA4 #793ECD #9B6EDA

Accessibility & contrast

On white

9.04
#5C2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5C2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2AA4
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AA4#FFFFFF#000000##FFFFFF
##5C2AA41.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#494A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2aa4;
/* rgb */ color: rgb(92, 42, 164);
/* oklch */ color: oklch(42.6% 0.183 296.4);
Tailwind
colors: {
  custom: {
    50: '#9169c0',
    500: '#5c2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aa4;
$custom-light: #9169c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aa4",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 264.59,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42597,
    "c": 0.18257,
    "h": 296.4
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#5C2AA4
secondary
#9DC169
accent
#E245A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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