#C798EC Color Information

Hex color code: #C798EC

The hex color #C798EC is a ethereal purple with RGB values of (199, 152, 236) and HSL of (274°, 69%, 76%). It is typically applied in digital products.

Try:
Color NamePlum
HEX
#C798EC
RGB
199, 152, 236
HSL
274°, 69%, 76%
CMYK
16%, 36%, 0%, 7%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #C798EC; color: #000000; }

Badge

New Feature
.badge { background-color: #C798EC; color: #000000; }

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 #C798EC; background-color: #C798EC15; }

Alert / Toast

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

Link / Accent

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

a { color: #C798EC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

199, 152, 236

Red: 199 / Green: 152 / Blue: 236

HSL

274°, 69%, 76%

Hue: 274° / Saturation: 69% / Lightness: 76%

CMYK

16%, 36%, 0%, 7%

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

What color is #C798EC?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #C798EC to RGB:

rgb(199, 152, 236)HEX to RGB Converter →

HEX to HSL

Convert #C798EC to HSL:

hsl(274, 69%, 76%)RGB to HSL Converter →

HEX to CMYK

Convert #C798EC to CMYK:

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

Color Meaning and Usage

A light purple tone, #C798EC has RGB (199, 152, 236) and HSL (274°, 69%, 76%). Known for evoking romance and playfulness, this magenta-red hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #C798EC is #BCEC98, creating high-contrast pairings. For softer combinations, try analogous colors like #9D98EC.

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

Contrast with #C798EC

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

Contrast Ratio: 9.13:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #C798EC?

#C798EC is a light purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #C798EC?

#C798EC in RGB is (199, 152, 236) - 199 red, 152 green, and 236 blue.

How to use #C798EC in CSS?

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

What colors go well with #C798EC?

#BCEC98 (complementary), #9D98EC (analogous), and #A557E0 (lighter shade) work well with #C798EC.