#CB42D2 Color Information

Hex color code: #CB42D2

A muted magenta shade, #CB42D2 appears as (203, 66, 210) in RGB and (297°, 62%, 54%) in HSL. It is typically applied in digital products.

Try:
Color NameMedium Orchid
HEX
#CB42D2
RGB
203, 66, 210
HSL
297°, 62%, 54%
CMYK
3%, 69%, 0%, 18%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #CB42D2; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

203, 66, 210

Red: 203 / Green: 66 / Blue: 210

HSL

297°, 62%, 54%

Hue: 297° / Saturation: 62% / Lightness: 54%

CMYK

3%, 69%, 0%, 18%

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

What color is #CB42D2?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #CB42D2 to RGB:

rgb(203, 66, 210)HEX to RGB Converter →

HEX to HSL

Convert #CB42D2 to HSL:

hsl(297, 62%, 54%)RGB to HSL Converter →

HEX to CMYK

Convert #CB42D2 to CMYK:

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

Color Meaning and Usage

#CB42D2 is a balanced magenta color with RGB values of 203, 66, 210 and HSL of 297°, 62%, 54%. This magenta-red hue evokes romance and playfulness, making it suitable for often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #CB42D2 is #48D241, creating high-contrast pairings. For softer combinations, try analogous colors like #8241D2.

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

Contrast with #CB42D2

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #CB42D2?

#CB42D2 is a balanced magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #CB42D2?

#CB42D2 in RGB is (203, 66, 210) - 203 red, 66 green, and 210 blue.

How to use #CB42D2 in CSS?

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

What colors go well with #CB42D2?

#48D241 (complementary), #8241D2 (analogous), and #9B26A1 (lighter shade) work well with #CB42D2.