#406842 Color Information

Hex color code: #406842

A pastel green shade, #406842 appears as (64, 104, 66) in RGB and (123°, 24%, 33%) in HSL. It is commonly used in modern UI design.

Try:
Color NameDark Olive Green
HEX
#406842
RGB
64, 104, 66
HSL
123°, 24%, 33%
CMYK
38%, 0%, 37%, 59%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #406842; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 104, 66

Red: 64 / Green: 104 / Blue: 66

HSL

123°, 24%, 33%

Hue: 123° / Saturation: 24% / Lightness: 33%

CMYK

38%, 0%, 37%, 59%

Cyan: 38% / Magenta: 0% / Yellow: 37% / Key: 59%

What color is #406842?

#406842 is a green hue associated with nature and harmony.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #406842 to RGB:

rgb(64, 104, 66)HEX to RGB Converter →

HEX to HSL

Convert #406842 to HSL:

hsl(123, 24%, 33%)RGB to HSL Converter →

HEX to CMYK

Convert #406842 to CMYK:

cmyk(38%, 0%, 37%, 59%)Color Converter →

Color Meaning and Usage

#406842 is a soft green color with RGB values of 64, 104, 66 and HSL of 123°, 24%, 33%. This green hue evokes nature and harmony, making it suitable for popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #406842 is #684066, creating high-contrast pairings. For softer combinations, try analogous colors like #526840.

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

Contrast with #406842

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #406842?

#406842 is a soft green color - a green hue that evokes nature and harmony.

What is the RGB value of #406842?

#406842 in RGB is (64, 104, 66) - 64 red, 104 green, and 66 blue.

How to use #406842 in CSS?

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

What colors go well with #406842?

#684066 (complementary), #526840 (analogous), and #233924 (lighter shade) work well with #406842.