#502040 Color Information

Hex color code: #502040

#502040 is a deep magenta color. In RGB it is (80, 32, 64), and in HSL it is (320°, 43%, 22%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Gray
HEX
#502040
RGB
80, 32, 64
HSL
320°, 43%, 22%
CMYK
0%, 60%, 20%, 69%

Shades

CSS Usage
color: #502040;
background-color: #502040;
border-color: #502040;
box-shadow: 0 0 10px #502040;
border: 2px solid #502040;
Tailwind Usage
bg-[#502040]
text-[#502040]
border-[#502040]
shadow-[0_0_10px_502040]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #502040, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #502040; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #502040; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #502040; background-color: #50204015; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #50204020; border-left: 4px solid #502040; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #502040; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #502040 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

80, 32, 64

Red: 80 / Green: 32 / Blue: 64

HSL

320°, 43%, 22%

Hue: 320° / Saturation: 43% / Lightness: 22%

CMYK

0%, 60%, 20%, 69%

Cyan: 0% / Magenta: 60% / Yellow: 20% / Key: 69%

What color is #502040?

#502040 is a magenta-red hue associated with romance and playfulness.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #502040 to RGB:

rgb(80, 32, 64)HEX to RGB Converter →

HEX to HSL

Convert #502040 to HSL:

hsl(320, 43%, 22%)RGB to HSL Converter →

HEX to CMYK

Convert #502040 to CMYK:

cmyk(0%, 60%, 20%, 69%)Color Converter →

Color Meaning and Usage

#502040 is a intense magenta color with RGB values of 80, 32, 64 and HSL of 320°, 43%, 22%. This magenta-red hue evokes romance and playfulness, making it suitable for a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #502040 is #205030, creating high-contrast pairings. For softer combinations, try analogous colors like #482050.

Use #502040 in CSS: color: #502040 or background-color: #502040. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #502040

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 1.62:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #502040?

#502040 is a intense magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #502040?

#502040 in RGB is (80, 32, 64) - 80 red, 32 green, and 64 blue.

How to use #502040 in CSS?

Use #502040 directly in your CSS properties like color or background-color.

What colors go well with #502040?

#205030 (complementary), #482050 (analogous), and #1A0A14 (lighter shade) work well with #502040.