Maroon Colors  ·  Color Library

Palettes / Colors / #40400A

#40400A — Deep Yellow

#40400A is a yellow color we call Deep Yellow, closest to the named color DarkOliveGreen (#556B2F). It belongs to the yellow family.

Color name

Closest CSS keyword: darkolivegreen (#556B2F) — not an exact match. CSS darkolivegreen gives you #556B2F, a different color; use #40400A when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#40400A is a warm yellow color associated with optimism, attention and cheer. It is deep enough for text, outlines and dark interface surfaces, and makes light colors glow next to it.

Its strongest partner is its complement #0A0A42; it also sits naturally between #42260A and #26420A. In the palettes below you can see it working alongside real color combinations from our collection.

#40400A · RGB 64, 64, 10

Download PNG swatch SVG

Color values

HEX#40400A
RGB64, 64, 10
HSL60°, 73%, 15%
HSV60°, 84%, 25%
CMYK0%, 0%, 84%, 75%
XYZ4.00, 4.78, 1.00
Yxy4.78, 0.4093, 0.4886
CIE-Lab26.09, -7.49, 30.71
Hunter Lab21.86, -4.48, 11.84

RGB & CMYK percentages

Red 25% · Green 25% · Blue 4%

Cyan 0% · Magenta 0% · Yellow 84% · Key 75%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #40400A on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #40400A on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #40400A

.text { color: #40400A; }
.background { background-color: #40400A; }
.border { border: 3px solid #40400A; }
.text-rgb { color: rgb(64, 64, 10); }
.text-hsl { color: hsl(60, 73%, 15%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #40400A; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(64, 64, 10, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #40400A; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(64, 64, 10, 0.8); }

HTML: <p style="color:#40400A">Text here</p> · <div style="background-color:#40400A">Div content here</div>

Shades of #40400A

#3E3E0A#393909#353508#313108#2C2C07#232306#1F1F05#1A1A04#161603#121203

Tints of #40400A

#656510#898915#ACAC1B#CFCF20#E1E13D#E6E660#ECEC83#F1F1A7#F7F7CA#FCFCED

Tones of #40400A

#3E3E0E#3A3A12#363616#32321A#2E2E1E#2A2A22

Color harmonies

Complementary — #0A0A42:

Analogous:

Triadic:

Contrast & accessibility

Against white text10.74:1 AAA
Against black text1.96:1 Fails

Best text color on #40400A: #FFFFFF.

Semi-transparent (opacity) text on #40400A

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #40400A: ·

How #40400A looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #404017Deuteranopia · #40401ATritanopia · #402124

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Bootstrap dark · #212529Tailwind stone 600 · #57534ETailwind neutral 600 · #525252

Palettes with a similar color

These palettes use a close neighbour of #40400A rather than the exact color:

Modern Ruby Bloom
#F0F4C8 · #C9DA2A · #919D20 · #3C410B
Electric Ruby Voyage
#DBE156 · #C9D020 · #616511 · #43460C
Honey Ember
#E2D483 · #DAC652 · #908028 · #484014
Crimson Ruby Mirage
#F7E8C5 · #D9AA40 · #D39D22 · #45340C
Modern Marble
#A12338 · #4A160C · #CA7320 · #4D410F
Vintage Dusk
#DDEB9E · #D3E971 · #677916 · #434F0C

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#3C410B#43460C#484014#45340C#4D410F#434F0C#433616#3B310C#494C10#3D3110#353E17#4B3D17

Browse neighbouring colors

← #404009  ·  #40400B →

Frequently asked questions

What color is #40400A?

#40400A is Deep Yellow, a yellow color (RGB 64, 64, 10). Its closest standard named color is DarkOliveGreen.

What is the RGB and HSL of #40400A?

#40400A is RGB 64, 64, 10 — HSL 60°, 73%, 15% — CMYK 0%, 0%, 84%, 75%.

What colors go with #40400A?

Its complement is #0A0A42; analogous partners are #42260A and #26420A. It also appears in 6+ palettes in our collection.

Can I use #40400A for text?

White text on #40400A has a contrast ratio of 10.74:1 (passes WCAG AA); black text gives 1.96:1.