#A52298 Color Information

Hex color code: #A52298

A understated magenta shade, #A52298 appears as (165, 34, 152) in RGB and (306°, 66%, 39%) in HSL. It is popular in mobile app design.

Try:
Color NameMedium Violet Red
HEX
#A52298
RGB
165, 34, 152
HSL
306°, 66%, 39%
CMYK
0%, 79%, 8%, 35%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #A52298; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

165, 34, 152

Red: 165 / Green: 34 / Blue: 152

HSL

306°, 66%, 39%

Hue: 306° / Saturation: 66% / Lightness: 39%

CMYK

0%, 79%, 8%, 35%

Cyan: 0% / Magenta: 79% / Yellow: 8% / Key: 35%

What color is #A52298?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #A52298 to RGB:

rgb(165, 34, 152)HEX to RGB Converter →

HEX to HSL

Convert #A52298 to HSL:

hsl(306, 66%, 39%)RGB to HSL Converter →

HEX to CMYK

Convert #A52298 to CMYK:

cmyk(0%, 79%, 8%, 35%)Color Converter →

Color Meaning and Usage

A subtle magenta tone, #A52298 has RGB (165, 34, 152) and HSL (306°, 66%, 39%). Known for evoking romance and playfulness, this magenta-red hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #A52298 is #22A52F, creating high-contrast pairings. For softer combinations, try analogous colors like #7122A5.

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

Contrast with #A52298

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #A52298?

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

What is the RGB value of #A52298?

#A52298 in RGB is (165, 34, 152) - 165 red, 34 green, and 152 blue.

How to use #A52298 in CSS?

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

What colors go well with #A52298?

#22A52F (complementary), #7122A5 (analogous), and #66155E (lighter shade) work well with #A52298.