#40AF3C Color Information

Hex color code: #40AF3C

The hex color #40AF3C is a subtle green with RGB values of (64, 175, 60) and HSL of (118°, 49%, 46%). It is popular in mobile app design.

Try:
Color NameSea Green
HEX
#40AF3C
RGB
64, 175, 60
HSL
118°, 49%, 46%
CMYK
63%, 0%, 66%, 31%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #40AF3C; color: #000000; }

Badge

New Feature
.badge { background-color: #40AF3C; 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 #40AF3C; background-color: #40AF3C15; }

Alert / Toast

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

Link / Accent

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

a { color: #40AF3C; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #40AF3C in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 175, 60

Red: 64 / Green: 175 / Blue: 60

HSL

118°, 49%, 46%

Hue: 118° / Saturation: 49% / Lightness: 46%

CMYK

63%, 0%, 66%, 31%

Cyan: 63% / Magenta: 0% / Yellow: 66% / Key: 31%

What color is #40AF3C?

#40AF3C is a green hue associated with nature and harmony.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40AF3C to RGB:

rgb(64, 175, 60)HEX to RGB Converter →

HEX to HSL

Convert #40AF3C to HSL:

hsl(118, 49%, 46%)RGB to HSL Converter →

HEX to CMYK

Convert #40AF3C to CMYK:

cmyk(63%, 0%, 66%, 31%)Color Converter →

Color Meaning and Usage

A pastel green tone, #40AF3C has RGB (64, 175, 60) and HSL (118°, 49%, 46%). Known for evoking nature and harmony, this green hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40AF3C is #AB3CAF, creating high-contrast pairings. For softer combinations, try analogous colors like #79AF3C.

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

Contrast with #40AF3C

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

Contrast Ratio: 7.42:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #40AF3C?

#40AF3C is a pastel green color - a green hue that evokes nature and harmony.

What is the RGB value of #40AF3C?

#40AF3C in RGB is (64, 175, 60) - 64 red, 175 green, and 60 blue.

How to use #40AF3C in CSS?

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

What colors go well with #40AF3C?

#AB3CAF (complementary), #79AF3C (analogous), and #2B7628 (lighter shade) work well with #40AF3C.