#40402B Color Information

Hex color code: #40402B

A dramatic yellow shade, #40402B appears as (64, 64, 43) in RGB and (60°, 20%, 21%) in HSL. It is typically applied in digital products.

Try:
Color NameDark Slate Gray
HEX
#40402B
RGB
64, 64, 43
HSL
60°, 20%, 21%
CMYK
0%, 0%, 33%, 75%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #40402B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 64, 43

Red: 64 / Green: 64 / Blue: 43

HSL

60°, 20%, 21%

Hue: 60° / Saturation: 20% / Lightness: 21%

CMYK

0%, 0%, 33%, 75%

Cyan: 0% / Magenta: 0% / Yellow: 33% / Key: 75%

What color is #40402B?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #40402B to RGB:

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

HEX to HSL

Convert #40402B to HSL:

hsl(60, 20%, 21%)RGB to HSL Converter →

HEX to CMYK

Convert #40402B to CMYK:

cmyk(0%, 0%, 33%, 75%)Color Converter →

Color Meaning and Usage

#40402B is a dramatic yellow color with RGB values of 64, 64, 43 and HSL of 60°, 20%, 21%. This green hue evokes nature and harmony, making it suitable for commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #40402B is #2B2B40, creating high-contrast pairings. For softer combinations, try analogous colors like #40362B.

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

Contrast with #40402B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #40402B?

#40402B is a dramatic yellow color - a green hue that evokes nature and harmony.

What is the RGB value of #40402B?

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

How to use #40402B in CSS?

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

What colors go well with #40402B?

#2B2B40 (complementary), #40362B (analogous), and #12120C (lighter shade) work well with #40402B.