#5C2AA5#5C2AA5

#5C2AA5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.184 H 296.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5C2AA5
RGBrgb(92, 42, 165)
HSLhsl(264, 59%, 41%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(44.2%, 74.5%, 0%, 35.3%)
CIE-LABlab(30.99, 48.50, -57.58)
CIE-LCHlch(30.99, 75.29, 310.11°)
OKLaboklab(42.68% 0.081 -0.1648)
OKLCHoklch(42.68% 0.184 296.2)
XYZxyz(12.0313, 6.6476, 36.2392)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AA5 #73A52A
analogous
#2A36A5 #5C2AA5 #992AA5
triadic
#5C2AA5 #A55C2A #2AA55C
tetradic
#5C2AA5 #A52A36 #73A52A #2AA599
square
#5C2AA5 #A52A36 #73A52A #2AA599
split-complementary
#5C2AA5 #A5992A #36A52A
monochromatic
#261143 #411E74 #5C2AA5 #793ECE #9B6FDA

Accessibility & contrast

On white

9.01
#5C2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5C2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2AA5
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AA5#FFFFFF#000000##FFFFFF
##5C2AA51.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#484A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2aa5;
/* rgb */ color: rgb(92, 42, 165);
/* oklch */ color: oklch(42.7% 0.184 296.2);
Tailwind
colors: {
  custom: {
    50: '#9169c1',
    500: '#5c2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aa5;
$custom-light: #9169c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aa5",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 264.39,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42684,
    "c": 0.18368,
    "h": 296.2
  },
  "luminance": 0.06648
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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