#C51B8F Color Information

Hex color code: #C51B8F

A striking magenta shade, #C51B8F appears as (197, 27, 143) in RGB and (319°, 76%, 44%) in HSL. It is often used for branding and logos.

Try:
Color NameMedium Violet Red
HEX
#C51B8F
RGB
197, 27, 143
HSL
319°, 76%, 44%
CMYK
0%, 86%, 27%, 23%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #C51B8F; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

197, 27, 143

Red: 197 / Green: 27 / Blue: 143

HSL

319°, 76%, 44%

Hue: 319° / Saturation: 76% / Lightness: 44%

CMYK

0%, 86%, 27%, 23%

Cyan: 0% / Magenta: 86% / Yellow: 27% / Key: 23%

What color is #C51B8F?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #C51B8F to RGB:

rgb(197, 27, 143)HEX to RGB Converter →

HEX to HSL

Convert #C51B8F to HSL:

hsl(319, 76%, 44%)RGB to HSL Converter →

HEX to CMYK

Convert #C51B8F to CMYK:

cmyk(0%, 86%, 27%, 23%)Color Converter →

Color Meaning and Usage

A bold magenta tone, #C51B8F has RGB (197, 27, 143) and HSL (319°, 76%, 44%). 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 #C51B8F is #1BC551, creating high-contrast pairings. For softer combinations, try analogous colors like #A61BC5.

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

Contrast with #C51B8F

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #C51B8F?

#C51B8F is a bold magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #C51B8F?

#C51B8F in RGB is (197, 27, 143) - 197 red, 27 green, and 143 blue.

How to use #C51B8F in CSS?

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

What colors go well with #C51B8F?

#1BC551 (complementary), #A61BC5 (analogous), and #82125F (lighter shade) work well with #C51B8F.