#5C2AA2#5C2AA2

#5C2AA2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.180 H 297.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#5C2AA2
RGBrgb(92, 42, 162)
HSLhsl(265, 59%, 40%)
HSVhsv(265, 74%, 64%)
CMYKcmyk(43.2%, 74.1%, 0%, 36.5%)
CIE-LABlab(30.73, 47.72, -56.19)
CIE-LCHlch(30.73, 73.72, 310.34°)
OKLaboklab(42.42% 0.0817 -0.1607)
OKLCHoklch(42.42% 0.18 297)
XYZxyz(11.7615, 6.5396, 34.8180)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AA2 #70A22A
analogous
#2A34A2 #5C2AA2 #982AA2
triadic
#5C2AA2 #A25C2A #2AA25C
tetradic
#5C2AA2 #A22A34 #70A22A #2AA298
square
#5C2AA2 #A22A34 #70A22A #2AA298
split-complementary
#5C2AA2 #A2982A #34A22A
monochromatic
#251141 #401D71 #5C2AA2 #793DCD #9A6DD9

Accessibility & contrast

On white

9.10
#5C2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5C2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2AA2
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AA2#FFFFFF#000000##FFFFFF
##5C2AA21.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#4A4964
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2aa2;
/* rgb */ color: rgb(92, 42, 162);
/* oklch */ color: oklch(42.4% 0.180 297.0);
Tailwind
colors: {
  custom: {
    50: '#9168be',
    500: '#5c2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aa2;
$custom-light: #9168be;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aa2",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 265,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.42424,
    "c": 0.18033,
    "h": 297
  },
  "luminance": 0.0654
}

Semantic roles & 50–950 ramp

primary
#5C2AA2
secondary
#9BC068
accent
#E246A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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