#CF40C4 Color Information

Hex color code: #CF40C4

The hex color #CF40C4 is a balanced magenta with RGB values of (207, 64, 196) and HSL of (305°, 60%, 53%). It is frequently seen in web interfaces.

Try:
Color NameMedium Orchid
HEX
#CF40C4
RGB
207, 64, 196
HSL
305°, 60%, 53%
CMYK
0%, 69%, 5%, 19%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #CF40C4; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

207, 64, 196

Red: 207 / Green: 64 / Blue: 196

HSL

305°, 60%, 53%

Hue: 305° / Saturation: 60% / Lightness: 53%

CMYK

0%, 69%, 5%, 19%

Cyan: 0% / Magenta: 69% / Yellow: 5% / Key: 19%

What color is #CF40C4?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #CF40C4 to RGB:

rgb(207, 64, 196)HEX to RGB Converter →

HEX to HSL

Convert #CF40C4 to HSL:

hsl(305, 60%, 53%)RGB to HSL Converter →

HEX to CMYK

Convert #CF40C4 to CMYK:

cmyk(0%, 69%, 5%, 19%)Color Converter →

Color Meaning and Usage

A understated magenta tone, #CF40C4 has RGB (207, 64, 196) and HSL (305°, 60%, 53%). Known for evoking romance and playfulness, this magenta-red hue is a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #CF40C4 is #3FCF4B, creating high-contrast pairings. For softer combinations, try analogous colors like #933FCF.

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

Contrast with #CF40C4

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

Contrast Ratio: 5.18:1
WCAG AA: Pass
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #CF40C4?

#CF40C4 is a understated magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #CF40C4?

#CF40C4 in RGB is (207, 64, 196) - 207 red, 64 green, and 196 blue.

How to use #CF40C4 in CSS?

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

What colors go well with #CF40C4?

#3FCF4B (complementary), #933FCF (analogous), and #9B2791 (lighter shade) work well with #CF40C4.