#8C5798 Color Information

Hex color code: #8C5798

The hex color #8C5798 is a pastel magenta with RGB values of (140, 87, 152) and HSL of (289°, 27%, 47%). It is commonly used in modern UI design.

Try:
Color NameGray
HEX
#8C5798
RGB
140, 87, 152
HSL
289°, 27%, 47%
CMYK
8%, 43%, 0%, 40%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #8C5798; 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 #8C5798; background-color: #8C579815; }

Alert / Toast

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

Link / Accent

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

a { color: #8C5798; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #8C5798 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

140, 87, 152

Red: 140 / Green: 87 / Blue: 152

HSL

289°, 27%, 47%

Hue: 289° / Saturation: 27% / Lightness: 47%

CMYK

8%, 43%, 0%, 40%

Cyan: 8% / Magenta: 43% / Yellow: 0% / Key: 40%

What color is #8C5798?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #8C5798 to RGB:

rgb(140, 87, 152)HEX to RGB Converter →

HEX to HSL

Convert #8C5798 to HSL:

hsl(289, 27%, 47%)RGB to HSL Converter →

HEX to CMYK

Convert #8C5798 to CMYK:

cmyk(8%, 43%, 0%, 40%)Color Converter →

Color Meaning and Usage

A gentle magenta tone, #8C5798 has RGB (140, 87, 152) and HSL (289°, 27%, 47%). 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 #8C5798 is #639857, creating high-contrast pairings. For softer combinations, try analogous colors like #6C5798.

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

Contrast with #8C5798

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 #8C5798?

#8C5798 is a gentle magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #8C5798?

#8C5798 in RGB is (140, 87, 152) - 140 red, 87 green, and 152 blue.

How to use #8C5798 in CSS?

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

What colors go well with #8C5798?

#639857 (complementary), #6C5798 (analogous), and #603C68 (lighter shade) work well with #8C5798.