Skip to content

#40390d

a deep, vivid yellow · cool · closest name: darkslategray

RGB
64, 57, 13
HSL
52°, 66%, 15%
CMYK
0, 11, 80, 75
Luminance
0.0405

Every format

HEX#40390d
RGBrgb(64, 57, 13)
HSLhsl(52, 66%, 15%)
CMYKcmyk(0%, 11%, 80%, 75%)
LABlab(23.8 -3.0 27.2)
LCHlch(23.8 27.4 96.2)
OKLCHoklch(0.342 0.062 100.1)

Copy-ready code

/* CSS */
color: #40390d;
background-color: #40390d;
/* Tailwind (arbitrary) */
class="text-[#40390d] bg-[#40390d]"
/* SCSS */
$brand: #40390d;
/* SwiftUI */
Color(red: 0.251, green: 0.224, blue: 0.051)
/* Android */
Color.parseColor("#40390d")

Accessibility — WCAG contrast

Aa
#40390d on white: 11.61:1
AA ✓ pass · AA-large · AAA
Aa
#40390d on black: 1.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green22.4%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta10.9%
Yellow79.7%
Key (black)74.9%

Color previews

#40390d text on a black background

contrast 1.81:1

Card sample

#40390d text on a white background

contrast 11.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40390d;
Background color
Panel with #40390d background
background-color: #40390d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #40390d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 57, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 57, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40390d;
background: linear-gradient(135deg, #40390d, #25400D);

Monochromatic scale

Palettes built from #40390d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40390d in the Color Lab