#40642B Color Information

Hex color code: #40642B

#40642B is a delicate green color. In RGB it is (64, 100, 43), and in HSL it is (98°, 40%, 28%). It is popular in mobile app design.

Try:
Color NameDark Olive Green
HEX
#40642B
RGB
64, 100, 43
HSL
98°, 40%, 28%
CMYK
36%, 0%, 57%, 61%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #40642B; 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 #40642B; background-color: #40642B15; }

Alert / Toast

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

Link / Accent

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

a { color: #40642B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #40642B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 100, 43

Red: 64 / Green: 100 / Blue: 43

HSL

98°, 40%, 28%

Hue: 98° / Saturation: 40% / Lightness: 28%

CMYK

36%, 0%, 57%, 61%

Cyan: 36% / Magenta: 0% / Yellow: 57% / Key: 61%

What color is #40642B?

#40642B is a green hue associated with nature and harmony.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40642B to RGB:

rgb(64, 100, 43)HEX to RGB Converter →

HEX to HSL

Convert #40642B to HSL:

hsl(98, 40%, 28%)RGB to HSL Converter →

HEX to CMYK

Convert #40642B to CMYK:

cmyk(36%, 0%, 57%, 61%)Color Converter →

Color Meaning and Usage

A delicate green tone, #40642B has RGB (64, 100, 43) and HSL (98°, 40%, 28%). Known for evoking nature and harmony, this green hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40642B is #4F2B64, creating high-contrast pairings. For softer combinations, try analogous colors like #5C642B.

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

Contrast with #40642B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #40642B?

#40642B is a delicate green color - a green hue that evokes nature and harmony.

What is the RGB value of #40642B?

#40642B in RGB is (64, 100, 43) - 64 red, 100 green, and 43 blue.

How to use #40642B in CSS?

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

What colors go well with #40642B?

#4F2B64 (complementary), #5C642B (analogous), and #1E2E14 (lighter shade) work well with #40642B.