Skip to content

#40360d

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

RGB
64, 54, 13
HSL
48°, 66%, 15%
CMYK
0, 16, 80, 75
Luminance
0.0376

Every format

HEX#40360d
RGBrgb(64, 54, 13)
HSLhsl(48, 66%, 15%)
CMYKcmyk(0%, 16%, 80%, 75%)
LABlab(22.9 -1.0 26.2)
LCHlch(22.9 26.2 92.2)
OKLCHoklch(0.335 0.059 95.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40360d on white: 11.99:1
AA ✓ pass · AA-large · AAA
Aa
#40360d on black: 1.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green21.2%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta15.6%
Yellow79.7%
Key (black)74.9%

Color previews

#40360d text on a black background

contrast 1.75:1

Card sample

#40360d text on a white background

contrast 11.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40360d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40360d in the Color Lab