Skip to content

#2c2d02

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

RGB
44, 45, 2
HSL
61°, 92%, 9%
CMYK
2, 0, 96, 82
Luminance
0.0242

At a glance

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

Hex
#2c2d02
Hue
61°
yellow
Saturation
92%
electric
Lightness
9%
deep
Brightness
18%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0242
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
14.16:1
Closest name
Black
ΔE2000 19.7
Where it sits
Hue61° of 360°
Saturation92%
Lightness9%
Temperature
Warm ← → Cool26% 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#2c2d02
RGBrgb(44, 45, 2)
HSLhsl(61, 92%, 9%)
CMYKcmyk(2%, 0%, 96%, 82%)
LABlab(17.5 -6.8 24.2)
LCHlch(17.5 25.2 105.6)
OKLCHoklch(0.287 0.061 111.0)
Decimal2895106
Display P3color(display-p3 0.173 0.176 0.008)

Copy-ready code

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

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 #2c2d02 · 14.16:1
Use #ffffffAAA at every size.
Aa
White text · 14.16: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: #2c2d02 as text scores 14.16:1 on white and 1.48:1 on black.

Accessibility — WCAG contrast

Aa
#2c2d02 on white: 14.16:1
AA ✓ pass · AA-large · AAA
Aa
#2c2d02 on black: 1.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #322A00
deuteranopia · #322C05
tritanopia · #302925

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c2d02 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.

#FDFDF2
#FAFBE4
#F8F9C3
#F8FA94
#F4F85E
#F1F528
#E5EA0A
#BFC309
#999C07
#6E710A
#2c2d02
Base = 950Lightest = 50 · #FDFDF2Darkest = 950 · #2c2d02
:root {
  --brand-50: #FDFDF2;
  --brand-100: #FAFBE4;
  --brand-200: #F8F9C3;
  --brand-300: #F8FA94;
  --brand-400: #F4F85E;
  --brand-500: #F1F528;
  --brand-600: #E5EA0A;
  --brand-700: #BFC309;
  --brand-800: #999C07;
  --brand-900: #6E710A;
  --brand-950: #2c2d02;
  --brand: #2c2d02;
  --brand-ink: #ffffff;
}

Colors that work with #2c2d02

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#ECEDC0
Hairlines and dividers
Muted text#999B4B
Captions on the surface
Accent#010B2E
Second voice, not a rival
Dark variant#777A05
Hover, pressed, headers
Light variant#FDFEE7
Selected rows, tints
Dark surface#242414
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 #2c2d02

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#03022D
Analogous left#2D1802
Analogous right#162D02
Split-complement 1#02162D
Split-complement 2#18022D
Triadic 1#022C2D
Triadic 2#2D022C
Tetradic#022D18

RGB percentages

Red17.3%
Green17.6%
Blue0.8%

CMYK percentages

Cyan2.2%
Magenta0.0%
Yellow95.6%
Key (black)82.4%

Color previews

#2c2d02 text on a black background

contrast 1.48:1

Card sample

#2c2d02 text on a white background

contrast 14.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c2d02

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.

#2c2d02 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.

#2c2d02, answered

What color is #2c2d02?

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

What is the RGB value of #2c2d02?

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

Is #2c2d02 a light or a dark color?

It is a dark color. Relative luminance is 0.0242 and perceived brightness is 16%, so white text on it reaches 14.16:1.

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

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

What is the complementary color of #2c2d02?

#03022D sits directly opposite on the wheel. Softer options are the split-complements #02162D and #18022D, which give the same contrast with far less vibration.

What colors go well with #2c2d02?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #999B4B for secondary text, #010B2E as an accent and #777A05 for hover and pressed states. For a palette, the analogous pair #2D1802 and #162D02 stays calm, while #03022D is the loudest partner.

What is #2c2d02 in CMYK for printing?

cmyk(2%, 0%, 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 #2c2d02 warm or cool?

Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2D1E02; nudged cooler, #1C2D02.

Work with #2c2d02 in the Color Lab