Skip to content

#2f2c02

a deep, electric yellow · warm · closest name: Black

RGB
47, 44, 2
HSL
56°, 92%, 10%
CMYK
0, 6, 96, 82
Luminance
0.0241

At a glance

Every number on this page in one read: what #2f2c02 is made of, how bright it looks, and which way it leans.

Hex
#2f2c02
Hue
56°
yellow
Saturation
92%
electric
Lightness
10%
deep
Brightness
18%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0241
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
14.17:1
Closest name
Black
ΔE2000 19.4
Where it sits
Hue56° of 360°
Saturation92%
Lightness10%
Temperature
Warm ← → Cool22% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2f2c02
RGBrgb(47, 44, 2)
HSLhsl(56, 92%, 10%)
CMYKcmyk(0%, 6%, 96%, 82%)
LABlab(17.5 -4.5 24.3)
LCHlch(17.5 24.7 100.5)
OKLCHoklch(0.287 0.059 105.4)
Decimal3091458
Display P3color(display-p3 0.184 0.173 0.008)

Copy-ready code

/* CSS */
color: #2f2c02;
background-color: #2f2c02;
/* Tailwind (arbitrary) */
class="text-[#2f2c02] bg-[#2f2c02]"
/* SCSS */
$brand: #2f2c02;
/* SwiftUI */
Color(red: 0.184, green: 0.173, blue: 0.008)
/* Android */
Color.parseColor("#2f2c02")
/* Flutter */
Color(0xFF2F2C02)
/* Python / OpenCV (BGR) */
(2, 44, 47)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #2f2c02 · 14.17:1
Use #ffffffAAA at every size.
Aa
White text · 14.17:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.48:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2f2c02 as text scores 14.17:1 on white and 1.48:1 on black.

Accessibility — WCAG contrast

Aa
#2f2c02 on white: 14.17:1
AA ✓ pass · AA-large · AAA
Aa
#2f2c02 on black: 1.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #312A00
deuteranopia · #322C04
tritanopia · #332824

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f2c02 is pinned to step 950; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDFCF2
#FBF9E4
#F9F5C3
#FAF493
#F8EE5E
#F6E828
#EBDC0A
#C4B708
#9D9307
#716A0A
#2f2c02
Base = 950Lightest = 50 · #FDFCF2Darkest = 950 · #2f2c02
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBF9E4;
  --brand-200: #F9F5C3;
  --brand-300: #FAF493;
  --brand-400: #F8EE5E;
  --brand-500: #F6E828;
  --brand-600: #EBDC0A;
  --brand-700: #C4B708;
  --brand-800: #9D9307;
  --brand-900: #716A0A;
  --brand-950: #2f2c02;
  --brand: #2f2c02;
  --brand-ink: #ffffff;
}

Colors that work with #2f2c02

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAFAF4
Tinted page background
Border#EDEAC0
Hairlines and dividers
Muted text#9B964B
Captions on the surface
Accent#011030
Second voice, not a rival
Dark variant#7A7205
Hover, pressed, headers
Light variant#FEFCE7
Selected rows, tints
Dark surface#242314
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2f2c02

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#02052F
Analogous left#2F1502
Analogous right#1B2F02
Split-complement 1#021B2F
Split-complement 2#15022F
Triadic 1#022F2C
Triadic 2#2C022F
Tetradic#022F15

RGB percentages

Red18.4%
Green17.3%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta6.4%
Yellow95.7%
Key (black)81.6%

Color previews

#2f2c02 text on a black background

contrast 1.48:1

Card sample

#2f2c02 text on a white background

contrast 14.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2c02

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#2f2c02 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2f2c02, answered

What color is #2f2c02?

#2f2c02 is a deep electric yellow, closest to Black (ΔE2000 19.4). It sits at 56° on the hue wheel with 92% saturation and 10% lightness, which reads as warm.

What is the RGB value of #2f2c02?

rgb(47, 44, 2) — 47 red, 44 green and 2 blue out of 255, or 18.4% / 17.3% / 0.8% by channel.

Is #2f2c02 a light or a dark color?

It is a dark color. Relative luminance is 0.0241 and perceived brightness is 17%, so white text on it reaches 14.17:1.

Should I use black or white text on #2f2c02?

White. It scores 14.17:1 against #2f2c02, versus 1.48:1 for black — AAA at any size.

What is the complementary color of #2f2c02?

#02052F sits directly opposite on the wheel. Softer options are the split-complements #021B2F and #15022F, which give the same contrast with far less vibration.

What colors go well with #2f2c02?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B964B for secondary text, #011030 as an accent and #7A7205 for hover and pressed states. For a palette, the analogous pair #2F1502 and #1B2F02 stays calm, while #02052F is the loudest partner.

What is #2f2c02 in CMYK for printing?

cmyk(0%, 6%, 96%, 82%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2f2c02 warm or cool?

Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2F1B02; nudged cooler, #222F02.

Work with #2f2c02 in the Color Lab