Skip to content

#403d21

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

RGB
64, 61, 33
HSL
54°, 32%, 19%
CMYK
0, 5, 48, 75
Luminance
0.0454

Every format

HEX#403d21
RGBrgb(64, 61, 33)
HSLhsl(54, 32%, 19%)
CMYKcmyk(0%, 5%, 48%, 75%)
LABlab(25.4 -3.6 17.7)
LCHlch(25.4 18.1 101.5)
OKLCHoklch(0.355 0.044 103.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#403d21 on white: 11.01:1
AA ✓ pass · AA-large · AAA
Aa
#403d21 on black: 1.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green23.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow48.4%
Key (black)74.9%

Color previews

#403d21 text on a black background

contrast 1.91:1

Card sample

#403d21 text on a white background

contrast 11.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #403d21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #403d21 in the Color Lab