#5C2EA4#5C2EA4

#5C2EA4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.178 H 295.8°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5C2EA4
RGBrgb(92, 46, 164)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 72%, 64%)
CMYKcmyk(43.9%, 72%, 0%, 35.7%)
CIE-LABlab(31.60, 46.28, -55.99)
CIE-LCHlch(31.60, 72.64, 309.58°)
OKLaboklab(43.09% 0.0775 -0.1602)
OKLCHoklch(43.09% 0.178 295.8)
XYZxyz(12.0897, 6.9094, 35.8114)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EA4 #76A42E
analogous
#2E3BA4 #5C2EA4 #972EA4
triadic
#5C2EA4 #A45C2E #2EA45C
tetradic
#5C2EA4 #A42E3B #76A42E #2EA497
square
#5C2EA4 #A42E3B #76A42E #2EA497
split-complementary
#5C2EA4 #A4972E #3BA42E
monochromatic
#261344 #412174 #5C2EA4 #7945CB #9B74D8

Accessibility & contrast

On white

8.82
#5C2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5C2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EA4
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EA4#FFFFFF#000000##FFFFFF
##5C2EA41.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#494C66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2ea4;
/* rgb */ color: rgb(92, 46, 164);
/* oklch */ color: oklch(43.1% 0.178 295.8);
Tailwind
colors: {
  custom: {
    50: '#916bc0',
    500: '#5c2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ea4;
$custom-light: #916bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ea4",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 263.39,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43089,
    "c": 0.17793,
    "h": 295.8
  },
  "luminance": 0.0691
}

Semantic roles & 50–950 ramp

primary
#5C2EA4
secondary
#A0C06E
accent
#DF48A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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