#AB7AFF Color Information

Hex color code: #AB7AFF

The hex color #AB7AFF is a vivid purple with RGB values of (171, 122, 255) and HSL of (262°, 100%, 74%). It is commonly used in modern UI design.

Try:
Color NameMedium Purple
HEX
#AB7AFF
RGB
171, 122, 255
HSL
262°, 100%, 74%
CMYK
33%, 52%, 0%, 0%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AB7AFF; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

171, 122, 255

Red: 171 / Green: 122 / Blue: 255

HSL

262°, 100%, 74%

Hue: 262° / Saturation: 100% / Lightness: 74%

CMYK

33%, 52%, 0%, 0%

Cyan: 33% / Magenta: 52% / Yellow: 0% / Key: 0%

What color is #AB7AFF?

#AB7AFF is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AB7AFF to RGB:

rgb(171, 122, 255)HEX to RGB Converter →

HEX to HSL

Convert #AB7AFF to HSL:

hsl(262, 100%, 74%)RGB to HSL Converter →

HEX to CMYK

Convert #AB7AFF to CMYK:

cmyk(33%, 52%, 0%, 0%)Color Converter →

Color Meaning and Usage

A bold purple tone, #AB7AFF has RGB (171, 122, 255) and HSL (262°, 100%, 74%). Known for evoking energy and excitement, this highly saturated hue is a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AB7AFF is #CEFF7A, creating high-contrast pairings. For softer combinations, try analogous colors like #7A8CFF.

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

Contrast with #AB7AFF

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AB7AFF?

#AB7AFF is a bold purple color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #AB7AFF?

#AB7AFF in RGB is (171, 122, 255) - 171 red, 122 green, and 255 blue.

How to use #AB7AFF in CSS?

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

What colors go well with #AB7AFF?

#CEFF7A (complementary), #7A8CFF (analogous), and #7B2EFF (lighter shade) work well with #AB7AFF.