Skip to content

#403f21

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

RGB
64, 63, 33
HSL
58°, 32%, 19%
CMYK
0, 2, 48, 75
Luminance
0.0475

Every format

HEX#403f21
RGBrgb(64, 63, 33)
HSLhsl(58, 32%, 19%)
CMYKcmyk(0%, 2%, 48%, 75%)
LABlab(26.0 -4.8 18.5)
LCHlch(26.0 19.1 104.7)
OKLCHoklch(0.361 0.047 106.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#403f21 on white: 10.76:1
AA ✓ pass · AA-large · AAA
Aa
#403f21 on black: 1.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green24.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow48.4%
Key (black)74.9%

Color previews

#403f21 text on a black background

contrast 1.95:1

Card sample

#403f21 text on a white background

contrast 10.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #403f21;
Background color
Panel with #403f21 background
background-color: #403f21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #403f21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 63, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 63, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #403f21;
background: linear-gradient(135deg, #403f21, #2C4021);

Monochromatic scale

Palettes built from #403f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #403f21 in the Color Lab