#786C9D Color Information

Hex color code: #786C9D

#786C9D is a subtle purple color. In RGB it is (120, 108, 157), and in HSL it is (255°, 20%, 52%). It is popular in mobile app design.

Try:
Color NameSlate Gray
HEX
#786C9D
RGB
120, 108, 157
HSL
255°, 20%, 52%
CMYK
24%, 31%, 0%, 38%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #786C9D; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #786C9D; 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 #786C9D; background-color: #786C9D15; }

Alert / Toast

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

Link / Accent

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

a { color: #786C9D; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #786C9D in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

120, 108, 157

Red: 120 / Green: 108 / Blue: 157

HSL

255°, 20%, 52%

Hue: 255° / Saturation: 20% / Lightness: 52%

CMYK

24%, 31%, 0%, 38%

Cyan: 24% / Magenta: 31% / Yellow: 0% / Key: 38%

What color is #786C9D?

#786C9D is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #786C9D to RGB:

rgb(120, 108, 157)HEX to RGB Converter →

HEX to HSL

Convert #786C9D to HSL:

hsl(255, 20%, 52%)RGB to HSL Converter →

HEX to CMYK

Convert #786C9D to CMYK:

cmyk(24%, 31%, 0%, 38%)Color Converter →

Color Meaning and Usage

A gentle purple tone, #786C9D has RGB (120, 108, 157) and HSL (255°, 20%, 52%). Known for evoking creativity and luxury, this blue-purple hue is commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #786C9D is #919D6C, creating high-contrast pairings. For softer combinations, try analogous colors like #6C789D.

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

Contrast with #786C9D

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #786C9D?

#786C9D is a gentle purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #786C9D?

#786C9D in RGB is (120, 108, 157) - 120 red, 108 green, and 157 blue.

How to use #786C9D in CSS?

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

What colors go well with #786C9D?

#919D6C (complementary), #6C789D (analogous), and #554B71 (lighter shade) work well with #786C9D.