#401895 Color Information

Hex color code: #401895

#401895 is a eye-catching purple color. In RGB it is (64, 24, 149), and in HSL it is (259°, 72%, 34%). It is widely used in graphic design.

Try:
Color NameIndigo
HEX
#401895
RGB
64, 24, 149
HSL
259°, 72%, 34%
CMYK
57%, 84%, 0%, 42%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #401895; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 24, 149

Red: 64 / Green: 24 / Blue: 149

HSL

259°, 72%, 34%

Hue: 259° / Saturation: 72% / Lightness: 34%

CMYK

57%, 84%, 0%, 42%

Cyan: 57% / Magenta: 84% / Yellow: 0% / Key: 42%

What color is #401895?

#401895 is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #401895 to RGB:

rgb(64, 24, 149)HEX to RGB Converter →

HEX to HSL

Convert #401895 to HSL:

hsl(259, 72%, 34%)RGB to HSL Converter →

HEX to CMYK

Convert #401895 to CMYK:

cmyk(57%, 84%, 0%, 42%)Color Converter →

Color Meaning and Usage

A striking purple tone, #401895 has RGB (64, 24, 149) and HSL (259°, 72%, 34%). Known for evoking creativity and luxury, this blue-purple hue is often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #401895 is #6E9518, creating high-contrast pairings. For softer combinations, try analogous colors like #182F95.

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

Contrast with #401895

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #401895?

#401895 is a striking purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #401895?

#401895 in RGB is (64, 24, 149) - 64 red, 24 green, and 149 blue.

How to use #401895 in CSS?

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

What colors go well with #401895?

#6E9518 (complementary), #182F95 (analogous), and #240E53 (lighter shade) work well with #401895.