#42401F Color Information

Hex color code: #42401F

A dark yellow shade, #42401F appears as (66, 64, 31) in RGB and (57°, 36%, 19%) in HSL. It is often used for branding and logos.

Try:
Color NameDark Olive Green
HEX
#42401F
RGB
66, 64, 31
HSL
57°, 36%, 19%
CMYK
0%, 3%, 53%, 74%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #42401F; 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 #42401F; background-color: #42401F15; }

Alert / Toast

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

Link / Accent

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

a { color: #42401F; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #42401F in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

66, 64, 31

Red: 66 / Green: 64 / Blue: 31

HSL

57°, 36%, 19%

Hue: 57° / Saturation: 36% / Lightness: 19%

CMYK

0%, 3%, 53%, 74%

Cyan: 0% / Magenta: 3% / Yellow: 53% / Key: 74%

What color is #42401F?

#42401F is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #42401F to RGB:

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

HEX to HSL

Convert #42401F to HSL:

hsl(57, 36%, 19%)RGB to HSL Converter →

HEX to CMYK

Convert #42401F to CMYK:

cmyk(0%, 3%, 53%, 74%)Color Converter →

Color Meaning and Usage

A intense yellow tone, #42401F has RGB (66, 64, 31) and HSL (57°, 36%, 19%). Known for evoking sophistication and elegance, this very dark shade is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #42401F is #1F2142, creating high-contrast pairings. For softer combinations, try analogous colors like #422F1F.

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

Contrast with #42401F

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #42401F?

#42401F is a intense yellow color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #42401F?

#42401F in RGB is (66, 64, 31) - 66 red, 64 green, and 31 blue.

How to use #42401F in CSS?

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

What colors go well with #42401F?

#1F2142 (complementary), #422F1F (analogous), and #0E0E07 (lighter shade) work well with #42401F.