#4018AF Color Information

Hex color code: #4018AF

#4018AF is a eye-catching purple color. In RGB it is (64, 24, 175), and in HSL it is (256°, 76%, 39%). It is popular in mobile app design.

Try:
Color NameRebecca Purple
HEX
#4018AF
RGB
64, 24, 175
HSL
256°, 76%, 39%
CMYK
63%, 86%, 0%, 31%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #4018AF; 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 #4018AF; background-color: #4018AF15; }

Alert / Toast

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

Link / Accent

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

a { color: #4018AF; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #4018AF in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 24, 175

Red: 64 / Green: 24 / Blue: 175

HSL

256°, 76%, 39%

Hue: 256° / Saturation: 76% / Lightness: 39%

CMYK

63%, 86%, 0%, 31%

Cyan: 63% / Magenta: 86% / Yellow: 0% / Key: 31%

What color is #4018AF?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #4018AF to RGB:

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

HEX to HSL

Convert #4018AF to HSL:

hsl(256, 76%, 39%)RGB to HSL Converter →

HEX to CMYK

Convert #4018AF to CMYK:

cmyk(63%, 86%, 0%, 31%)Color Converter →

Color Meaning and Usage

A vivid purple tone, #4018AF has RGB (64, 24, 175) and HSL (256°, 76%, 39%). Known for evoking creativity and luxury, this blue-purple hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #4018AF is #87AF18, creating high-contrast pairings. For softer combinations, try analogous colors like #183BAF.

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

Contrast with #4018AF

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #4018AF?

#4018AF is a vivid purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #4018AF?

#4018AF in RGB is (64, 24, 175) - 64 red, 24 green, and 175 blue.

How to use #4018AF in CSS?

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

What colors go well with #4018AF?

#87AF18 (complementary), #183BAF (analogous), and #270F6C (lighter shade) work well with #4018AF.