#A42D98 Color Information

Hex color code: #A42D98

A balanced magenta shade, #A42D98 appears as (164, 45, 152) in RGB and (306°, 57%, 41%) in HSL. It is often used for branding and logos.

Try:
Color NameMedium Violet Red
HEX
#A42D98
RGB
164, 45, 152
HSL
306°, 57%, 41%
CMYK
0%, 73%, 7%, 36%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #A42D98; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

164, 45, 152

Red: 164 / Green: 45 / Blue: 152

HSL

306°, 57%, 41%

Hue: 306° / Saturation: 57% / Lightness: 41%

CMYK

0%, 73%, 7%, 36%

Cyan: 0% / Magenta: 73% / Yellow: 7% / Key: 36%

What color is #A42D98?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #A42D98 to RGB:

rgb(164, 45, 152)HEX to RGB Converter →

HEX to HSL

Convert #A42D98 to HSL:

hsl(306, 57%, 41%)RGB to HSL Converter →

HEX to CMYK

Convert #A42D98 to CMYK:

cmyk(0%, 73%, 7%, 36%)Color Converter →

Color Meaning and Usage

A balanced magenta tone, #A42D98 has RGB (164, 45, 152) and HSL (306°, 57%, 41%). Known for evoking romance and playfulness, this magenta-red hue is often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #A42D98 is #2DA439, creating high-contrast pairings. For softer combinations, try analogous colors like #742DA4.

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

Contrast with #A42D98

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #A42D98?

#A42D98 is a balanced magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #A42D98?

#A42D98 in RGB is (164, 45, 152) - 164 red, 45 green, and 152 blue.

How to use #A42D98 in CSS?

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

What colors go well with #A42D98?

#2DA439 (complementary), #742DA4 (analogous), and #681D61 (lighter shade) work well with #A42D98.