#521881 Color Information

Hex color code: #521881

#521881 is a neutral purple color. In RGB it is (82, 24, 129), and in HSL it is (273°, 69%, 30%). It is commonly used in modern UI design.

Try:
Color NameIndigo
HEX
#521881
RGB
82, 24, 129
HSL
273°, 69%, 30%
CMYK
36%, 81%, 0%, 49%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #521881; 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 #521881; background-color: #52188115; }

Alert / Toast

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

Link / Accent

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

a { color: #521881; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

82, 24, 129

Red: 82 / Green: 24 / Blue: 129

HSL

273°, 69%, 30%

Hue: 273° / Saturation: 69% / Lightness: 30%

CMYK

36%, 81%, 0%, 49%

Cyan: 36% / Magenta: 81% / Yellow: 0% / Key: 49%

What color is #521881?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #521881 to RGB:

rgb(82, 24, 129)HEX to RGB Converter →

HEX to HSL

Convert #521881 to HSL:

hsl(273, 69%, 30%)RGB to HSL Converter →

HEX to CMYK

Convert #521881 to CMYK:

cmyk(36%, 81%, 0%, 49%)Color Converter →

Color Meaning and Usage

A subtle purple tone, #521881 has RGB (82, 24, 129) and HSL (273°, 69%, 30%). Known for evoking romance and playfulness, this magenta-red hue is a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #521881 is #478118, creating high-contrast pairings. For softer combinations, try analogous colors like #1D1881.

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

Contrast with #521881

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #521881?

#521881 is a subtle purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #521881?

#521881 in RGB is (82, 24, 129) - 82 red, 24 green, and 129 blue.

How to use #521881 in CSS?

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

What colors go well with #521881?

#478118 (complementary), #1D1881 (analogous), and #290C41 (lighter shade) work well with #521881.