#402749 Color Information

Hex color code: #402749

A deep purple shade, #402749 appears as (64, 39, 73) in RGB and (284°, 30%, 22%) in HSL. It is commonly used in modern UI design.

Try:
Color NameDark Slate Gray
HEX
#402749
RGB
64, 39, 73
HSL
284°, 30%, 22%
CMYK
12%, 47%, 0%, 71%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #402749; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 39, 73

Red: 64 / Green: 39 / Blue: 73

HSL

284°, 30%, 22%

Hue: 284° / Saturation: 30% / Lightness: 22%

CMYK

12%, 47%, 0%, 71%

Cyan: 12% / Magenta: 47% / Yellow: 0% / Key: 71%

What color is #402749?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #402749 to RGB:

rgb(64, 39, 73)HEX to RGB Converter →

HEX to HSL

Convert #402749 to HSL:

hsl(284, 30%, 22%)RGB to HSL Converter →

HEX to CMYK

Convert #402749 to CMYK:

cmyk(12%, 47%, 0%, 71%)Color Converter →

Color Meaning and Usage

#402749 is a dramatic purple color with RGB values of 64, 39, 73 and HSL of 284°, 30%, 22%. This magenta-red hue evokes romance and playfulness, making it suitable for popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #402749 is #304927, creating high-contrast pairings. For softer combinations, try analogous colors like #2F2749.

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

Contrast with #402749

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

Contrast Ratio: 1.60:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #402749?

#402749 is a dramatic purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #402749?

#402749 in RGB is (64, 39, 73) - 64 red, 39 green, and 73 blue.

How to use #402749 in CSS?

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

What colors go well with #402749?

#304927 (complementary), #2F2749 (analogous), and #140C17 (lighter shade) work well with #402749.