#7940BA Color Information

Hex color code: #7940BA

#7940BA is a gentle purple color. In RGB it is (121, 64, 186), and in HSL it is (268°, 49%, 49%). It is frequently seen in web interfaces.

Try:
Color NameSlate Blue
HEX
#7940BA
RGB
121, 64, 186
HSL
268°, 49%, 49%
CMYK
35%, 66%, 0%, 27%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #7940BA; 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 #7940BA; background-color: #7940BA15; }

Alert / Toast

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

Link / Accent

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

a { color: #7940BA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #7940BA in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

121, 64, 186

Red: 121 / Green: 64 / Blue: 186

HSL

268°, 49%, 49%

Hue: 268° / Saturation: 49% / Lightness: 49%

CMYK

35%, 66%, 0%, 27%

Cyan: 35% / Magenta: 66% / Yellow: 0% / Key: 27%

What color is #7940BA?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #7940BA to RGB:

rgb(121, 64, 186)HEX to RGB Converter →

HEX to HSL

Convert #7940BA to HSL:

hsl(268, 49%, 49%)RGB to HSL Converter →

HEX to CMYK

Convert #7940BA to CMYK:

cmyk(35%, 66%, 0%, 27%)Color Converter →

Color Meaning and Usage

#7940BA is a soft purple color with RGB values of 121, 64, 186 and HSL of 268°, 49%, 49%. This blue-purple hue evokes creativity and luxury, making it suitable for popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #7940BA is #81BA40, creating high-contrast pairings. For softer combinations, try analogous colors like #4044BA.

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

Contrast with #7940BA

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #7940BA?

#7940BA is a soft purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #7940BA?

#7940BA in RGB is (121, 64, 186) - 121 red, 64 green, and 186 blue.

How to use #7940BA in CSS?

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

What colors go well with #7940BA?

#81BA40 (complementary), #4044BA (analogous), and #542C81 (lighter shade) work well with #7940BA.