Skip to content

#badc2f

a balanced, vivid green · warm · closest name: Yellow Green

RGB
186, 220, 47
HSL
72°, 71%, 52%
CMYK
16, 0, 79, 14
Luminance
0.6183

At a glance

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

Hex
#badc2f
Hue
72°
green
Saturation
71%
vivid
Lightness
52%
balanced
Brightness
86%
HSV value
Perceived
77%
weighted brightness
Luminance
0.6183
WCAG relative
Temperature
Warm
35/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
13.37:1
Closest name
Yellow Green
ΔE2000 5.8
Where it sits
Hue72° of 360°
Saturation71%
Lightness52%
Temperature
Warm ← → Cool35% 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#badc2f
RGBrgb(186, 220, 47)
HSLhsl(72, 71%, 52%)
CMYKcmyk(16%, 0%, 79%, 14%)
LABlab(82.8 -32.4 74.0)
LCHlch(82.8 80.8 113.6)
OKLCHoklch(0.841 0.188 120.8)
Decimal12246063
Display P3color(display-p3 0.729 0.863 0.184)

Copy-ready code

/* CSS */
color: #badc2f;
background-color: #badc2f;
/* Tailwind (arbitrary) */
class="text-[#badc2f] bg-[#badc2f]"
/* SCSS */
$brand: #badc2f;
/* SwiftUI */
Color(red: 0.729, green: 0.863, blue: 0.184)
/* Android */
Color.parseColor("#badc2f")
/* Flutter */
Color(0xFFBADC2F)
/* Python / OpenCV (BGR) */
(47, 220, 186)

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#000000 on #badc2f · 13.37:1
Use #000000AAA at every size.
Aa
White text · 1.57:1
AA fail · AA large fail · AAA fail
Aa
Black text · 13.37:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #badc2f as text scores 1.57:1 on white and 13.37:1 on black.

Accessibility — WCAG contrast

Aa
#badc2f on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#badc2f on black: 13.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EACF00
deuteranopia · #E6CE41
tritanopia · #C5D0BC

Color scale — 50 to 950

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

#FAFCF3
#F5F8E7
#EAF3C9
#DFEF9F
#CFE76F
#badc2f
#AFD223
#92AF1D
#758C18
#566515
#353F0D
Base = 500Lightest = 50 · #FAFCF3Darkest = 950 · #353F0D
:root {
  --brand-50: #FAFCF3;
  --brand-100: #F5F8E7;
  --brand-200: #EAF3C9;
  --brand-300: #DFEF9F;
  --brand-400: #CFE76F;
  --brand-500: #badc2f;
  --brand-600: #AFD223;
  --brand-700: #92AF1D;
  --brand-800: #758C18;
  --brand-900: #566515;
  --brand-950: #353F0D;
  --brand: #badc2f;
  --brand-ink: #000000;
}

Colors that work with #badc2f

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

Text on it#000000
Black wins here
Surface#F9FAF4
Tinted page background
Border#E4EDC0
Hairlines and dividers
Muted text#8B9B4B
Captions on the surface
Accent#2A34E1
Second voice, not a rival
Dark variant#5B6D12
Hover, pressed, headers
Light variant#F8FBE9
Selected rows, tints
Dark surface#212414
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 #badc2f

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • 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#512FDC
Analogous left#DCA82F
Analogous right#64DC2F
Split-complement 1#2F64DC
Split-complement 2#A82FDC
Triadic 1#2FBADC
Triadic 2#DC2FBA
Tetradic#2FDCA8

RGB percentages

Red72.9%
Green86.3%
Blue18.4%

CMYK percentages

Cyan15.5%
Magenta0.0%
Yellow78.6%
Key (black)13.7%

Color previews

#badc2f text on a black background

contrast 13.37:1

Card sample

#badc2f text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 220, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 220, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #badc2f;
background: linear-gradient(135deg, #badc2f, #47DC2F);

Monochromatic scale

Palettes built from #badc2f

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.

#badc2f in the real world

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

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#badc2f, answered

What color is #badc2f?

#badc2f is a balanced vivid green, closest to Yellow Green (ΔE2000 5.8). It sits at 72° on the hue wheel with 71% saturation and 52% lightness, which reads as warm.

What is the RGB value of #badc2f?

rgb(186, 220, 47) — 186 red, 220 green and 47 blue out of 255, or 72.9% / 86.3% / 18.4% by channel.

Is #badc2f a light or a dark color?

It is a light color. Relative luminance is 0.6183 and perceived brightness is 77%, so black text on it reaches 13.37:1.

Should I use black or white text on #badc2f?

Black. It scores 13.37:1 against #badc2f, versus 1.57:1 for white — AAA at any size.

What is the complementary color of #badc2f?

#512FDC sits directly opposite on the wheel. Softer options are the split-complements #2F64DC and #A82FDC, which give the same contrast with far less vibration.

What colors go well with #badc2f?

For interface work: #F9FAF4 as the surface, #E4EDC0 for borders, #8B9B4B for secondary text, #2A34E1 as an accent and #5B6D12 for hover and pressed states. For a palette, the analogous pair #DCA82F and #64DC2F stays calm, while #512FDC is the loudest partner.

What is #badc2f in CMYK for printing?

cmyk(16%, 0%, 79%, 14%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #badc2f warm or cool?

Warm — it scores 35 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DCBF2F; nudged cooler, #7ADE2D.

Work with #badc2f in the Color Lab