#CF40C8 Color Information

Hex color code: #CF40C8

A understated magenta shade, #CF40C8 appears as (207, 64, 200) in RGB and (303°, 60%, 53%) in HSL. It is popular in mobile app design.

Try:
Color NameMedium Orchid
HEX
#CF40C8
RGB
207, 64, 200
HSL
303°, 60%, 53%
CMYK
0%, 69%, 3%, 19%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #CF40C8; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

207, 64, 200

Red: 207 / Green: 64 / Blue: 200

HSL

303°, 60%, 53%

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

CMYK

0%, 69%, 3%, 19%

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

What color is #CF40C8?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #CF40C8 to RGB:

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

HEX to HSL

Convert #CF40C8 to HSL:

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

HEX to CMYK

Convert #CF40C8 to CMYK:

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

Color Meaning and Usage

#CF40C8 is a neutral magenta color with RGB values of 207, 64, 200 and HSL of 303°, 60%, 53%. This magenta-red hue evokes romance and playfulness, making it suitable for a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #CF40C8 is #3FCF46, creating high-contrast pairings. For softer combinations, try analogous colors like #8E3FCF.

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

Contrast with #CF40C8

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #CF40C8?

#CF40C8 is a neutral magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #CF40C8?

#CF40C8 in RGB is (207, 64, 200) - 207 red, 64 green, and 200 blue.

How to use #CF40C8 in CSS?

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

What colors go well with #CF40C8?

#3FCF46 (complementary), #8E3FCF (analogous), and #9B2795 (lighter shade) work well with #CF40C8.