Skip to content

#2a2f0e

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

RGB
42, 47, 14
HSL
69°, 54%, 12%
CMYK
11, 0, 70, 82
Luminance
0.0256

Every format

HEX#2a2f0e
RGBrgb(42, 47, 14)
HSLhsl(69, 54%, 12%)
CMYKcmyk(11%, 0%, 70%, 82%)
LABlab(18.2 -8.1 19.9)
LCHlch(18.2 21.5 112.2)
OKLCHoklch(0.292 0.052 117.0)

Copy-ready code

/* CSS */
color: #2a2f0e;
background-color: #2a2f0e;
/* Tailwind (arbitrary) */
class="text-[#2a2f0e] bg-[#2a2f0e]"
/* SCSS */
$brand: #2a2f0e;
/* SwiftUI */
Color(red: 0.165, green: 0.184, blue: 0.055)
/* Android */
Color.parseColor("#2a2f0e")

Accessibility — WCAG contrast

Aa
#2a2f0e on white: 13.89:1
AA ✓ pass · AA-large · AAA
Aa
#2a2f0e on black: 1.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green18.4%
Blue5.5%

CMYK percentages

Cyan10.6%
Magenta0.0%
Yellow70.2%
Key (black)81.6%

Color previews

#2a2f0e text on a black background

contrast 1.51:1

Card sample

#2a2f0e text on a white background

contrast 13.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2a2f0e;
Background color
Panel with #2a2f0e background
background-color: #2a2f0e;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 47, 14, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 47, 14, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a2f0e;
background: linear-gradient(135deg, #2a2f0e, #142F0E);

Monochromatic scale

Palettes built from #2a2f0e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2a2f0e in the Color Lab