Employing humor in the workplace has its risks and rewards. If you are going to poke fun at someone, let it be you, or a person with whom you have a solid relationship and you know they will take it in good humor. This is especially true if the humor has a sarcastic twinge to it. Otherwise, it would be wise to avoid sarcasm or any humor that is at the expense of someone else.
Poking fun at yourself is a safe form of humor, unless you bludgeon yourself with it, which makes others uncomfortable. If you’re doing business in Japan, it would be prudent to avoid self-deprecating humor since it’s not embraced in their culture. On the other hand, they love puns and cartoons. Neutral subjects such as the weather are usually OK to make a joke about in any culture. Common gripes that a group of workers share collectively are a safe haven for humor. But no matter what, there is always an element of risk involved because you cannot be 100% certain how people will take it.
Humor can fall flat and even boomerang, depending on the mood, the timing and the environment. Keep those factors in mind and use both intuition and common sense. If you are uncertain at all, you can preface your quip or joke by saying, “I just thought of something that I think is humorous. Can I share it with you?” Even if it flops, at least you had their permission to share it.