#8170F2 Color Information

Hex color code: #8170F2

#8170F2 is a striking blue color. In RGB it is (129, 112, 242), and in HSL it is (248°, 83%, 69%). It is popular in mobile app design.

Try:
Color NameMedium Slate Blue
HEX
#8170F2
RGB
129, 112, 242
HSL
248°, 83%, 69%
CMYK
47%, 54%, 0%, 5%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #8170F2; 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 #8170F2; background-color: #8170F215; }

Alert / Toast

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

Link / Accent

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

a { color: #8170F2; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #8170F2 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

129, 112, 242

Red: 129 / Green: 112 / Blue: 242

HSL

248°, 83%, 69%

Hue: 248° / Saturation: 83% / Lightness: 69%

CMYK

47%, 54%, 0%, 5%

Cyan: 47% / Magenta: 54% / Yellow: 0% / Key: 5%

What color is #8170F2?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #8170F2 to RGB:

rgb(129, 112, 242)HEX to RGB Converter →

HEX to HSL

Convert #8170F2 to HSL:

hsl(248, 83%, 69%)RGB to HSL Converter →

HEX to CMYK

Convert #8170F2 to CMYK:

cmyk(47%, 54%, 0%, 5%)Color Converter →

Color Meaning and Usage

A bold blue tone, #8170F2 has RGB (129, 112, 242) and HSL (248°, 83%, 69%). Known for evoking energy and excitement, this highly saturated hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #8170F2 is #E0F26E, creating high-contrast pairings. For softer combinations, try analogous colors like #6E9EF2.

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

Contrast with #8170F2

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #8170F2?

#8170F2 is a bold blue color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #8170F2?

#8170F2 in RGB is (129, 112, 242) - 129 red, 112 green, and 242 blue.

How to use #8170F2 in CSS?

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

What colors go well with #8170F2?

#E0F26E (complementary), #6E9EF2 (analogous), and #4228EB (lighter shade) work well with #8170F2.