Skip to content

#2f2d01

a deep, electric yellow · cool · closest name: black

RGB
47, 45, 1
HSL
57°, 96%, 9%
CMYK
0, 4, 98, 82
Luminance
0.0248

Every format

HEX#2f2d01
RGBrgb(47, 45, 1)
HSLhsl(57, 96%, 9%)
CMYKcmyk(0%, 4%, 98%, 82%)
LABlab(17.8 -5.2 25.1)
LCHlch(17.8 25.6 101.7)
OKLCHoklch(0.290 0.061 107.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2d01 on white: 14.03:1
AA ✓ pass · AA-large · AAA
Aa
#2f2d01 on black: 1.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green17.6%
Blue0.4%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow97.9%
Key (black)81.6%

Color previews

#2f2d01 text on a black background

contrast 1.50:1

Card sample

#2f2d01 text on a white background

contrast 14.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 45, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 45, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f2d01;
background: linear-gradient(135deg, #2f2d01, #122F01);

Monochromatic scale

Palettes built from #2f2d01

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2d01 in the Color Lab