#40C51B Color Information

Hex color code: #40C51B

The hex color #40C51B is a bold green with RGB values of (64, 197, 27) and HSL of (107°, 76%, 44%). It is often used for branding and logos.

Try:
Color NameOlive Drab
HEX
#40C51B
RGB
64, 197, 27
HSL
107°, 76%, 44%
CMYK
68%, 0%, 86%, 23%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #40C51B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 197, 27

Red: 64 / Green: 197 / Blue: 27

HSL

107°, 76%, 44%

Hue: 107° / Saturation: 76% / Lightness: 44%

CMYK

68%, 0%, 86%, 23%

Cyan: 68% / Magenta: 0% / Yellow: 86% / Key: 23%

What color is #40C51B?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40C51B to RGB:

rgb(64, 197, 27)HEX to RGB Converter →

HEX to HSL

Convert #40C51B to HSL:

hsl(107, 76%, 44%)RGB to HSL Converter →

HEX to CMYK

Convert #40C51B to CMYK:

cmyk(68%, 0%, 86%, 23%)Color Converter →

Color Meaning and Usage

A bold green tone, #40C51B has RGB (64, 197, 27) and HSL (107°, 76%, 44%). Known for evoking nature and harmony, this green hue is commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40C51B is #A11BC5, creating high-contrast pairings. For softer combinations, try analogous colors like #95C51B.

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

Contrast with #40C51B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #40C51B?

#40C51B is a bold green color - a green hue that evokes nature and harmony.

What is the RGB value of #40C51B?

#40C51B in RGB is (64, 197, 27) - 64 red, 197 green, and 27 blue.

How to use #40C51B in CSS?

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

What colors go well with #40C51B?

#A11BC5 (complementary), #95C51B (analogous), and #2A8212 (lighter shade) work well with #40C51B.