#A31F9C Color Information

Hex color code: #A31F9C

A neutral magenta shade, #A31F9C appears as (163, 31, 156) in RGB and (303°, 68%, 38%) in HSL. It is commonly used in modern UI design.

Try:
Color NameDark Magenta
HEX
#A31F9C
RGB
163, 31, 156
HSL
303°, 68%, 38%
CMYK
0%, 81%, 4%, 36%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #A31F9C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

163, 31, 156

Red: 163 / Green: 31 / Blue: 156

HSL

303°, 68%, 38%

Hue: 303° / Saturation: 68% / Lightness: 38%

CMYK

0%, 81%, 4%, 36%

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

What color is #A31F9C?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #A31F9C to RGB:

rgb(163, 31, 156)HEX to RGB Converter →

HEX to HSL

Convert #A31F9C to HSL:

hsl(303, 68%, 38%)RGB to HSL Converter →

HEX to CMYK

Convert #A31F9C to CMYK:

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

Color Meaning and Usage

A subtle magenta tone, #A31F9C has RGB (163, 31, 156) and HSL (303°, 68%, 38%). 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 #A31F9C is #1FA326, creating high-contrast pairings. For softer combinations, try analogous colors like #671FA3.

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

Contrast with #A31F9C

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #A31F9C?

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

What is the RGB value of #A31F9C?

#A31F9C in RGB is (163, 31, 156) - 163 red, 31 green, and 156 blue.

How to use #A31F9C in CSS?

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

What colors go well with #A31F9C?

#1FA326 (complementary), #671FA3 (analogous), and #63135F (lighter shade) work well with #A31F9C.