#A797F6 Color Information

Hex color code: #A797F6

The hex color #A797F6 is a airy blue with RGB values of (167, 151, 246) and HSL of (250°, 84%, 78%). It is widely used in graphic design.

Try:
Color NameMedium Purple
HEX
#A797F6
RGB
167, 151, 246
HSL
250°, 84%, 78%
CMYK
32%, 39%, 0%, 4%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #A797F6; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

167, 151, 246

Red: 167 / Green: 151 / Blue: 246

HSL

250°, 84%, 78%

Hue: 250° / Saturation: 84% / Lightness: 78%

CMYK

32%, 39%, 0%, 4%

Cyan: 32% / Magenta: 39% / Yellow: 0% / Key: 4%

What color is #A797F6?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #A797F6 to RGB:

rgb(167, 151, 246)HEX to RGB Converter →

HEX to HSL

Convert #A797F6 to HSL:

hsl(250, 84%, 78%)RGB to HSL Converter →

HEX to CMYK

Convert #A797F6 to CMYK:

cmyk(32%, 39%, 0%, 4%)Color Converter →

Color Meaning and Usage

#A797F6 is a delicate blue color with RGB values of 167, 151, 246 and HSL of 250°, 84%, 78%. This highly saturated hue evokes energy and excitement, making it suitable for a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #A797F6 is #E6F698, creating high-contrast pairings. For softer combinations, try analogous colors like #98B7F6.

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

Contrast with #A797F6

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

Contrast Ratio: 8.40:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #A797F6?

#A797F6 is a delicate blue color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #A797F6?

#A797F6 in RGB is (167, 151, 246) - 167 red, 151 green, and 246 blue.

How to use #A797F6 in CSS?

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

What colors go well with #A797F6?

#E6F698 (complementary), #98B7F6 (analogous), and #6C51F0 (lighter shade) work well with #A797F6.