Is using yellow text on a black bg bad as Mike pointed out here? If yes what colors should I use (RGB or hex values)?

  • Font is too tight.
    – bjb568
    Commented Dec 29, 2014 at 3:53

3 Answers 3


A few years ago if you had asked this question then the answer would have been a resounding yes! However we've been redefining design styles and ideas lately so it's now a little more complex.

Yellow can work on a black background, but it's as much about fonts and where the colour is used that affect the overall look of the site. Make sure you're using fonts that are easily legible and you only use yellow for highlighting, as you have done. Also try not to use pure white either but opt for a gentler light grey such as #ebebeb.

Bold colours such as yellow with a dark background are commonly seen with the current trend of flat design, however these are always a muted or softer version of the colour, and normally not a primary version of it. The background is also primarily a rich black (#252525 or similar) not true black (#000000). This makes it much easier to view whilst keeping the original idea for a colour scheme.

This site gives you an idea of what colours look like on a background it's very useful to work out what hurts your eyes and what doesn't.

This wonderful UI kit by Simon Eramo gives you a good idea of how to use bright colours on a dark background

Flat Bold UI Kit by Simon Eramo

This site gives a very nice example of how to use black and yellow, using white to off-set the potential harshness of the colour scheme.

Fernando Henrique Site by Diego Curuma

The yellow here is primary but used only to highlight.

If you tend towards more golds and orange-yellows such as #f39c12 or #ffbb33 on soft black or dark grey backgrounds such as #333333 or #555555 then you should find it is easy on the eyes.

  • Thanks for the answer; there's a follow up question here.
    – user5402
    Commented Aug 11, 2013 at 17:45

Although it was a pretty funny comment, yellow text on a black background is not a designer hate crime. Here are some sites that play with that concept. It's important to note that what you'll find throughout all these great sites is some consistent themes though.

  • They never go full, true black background
  • They never use yellow text as paragraph text where or where there is content, it's mainly used as headings and sub headings.

Rexona Rexona Site

Cinematik Cinematk

Devstars.com DevStars

Typography served - This site has yellow typography designs on it as well just to show examples that aren't limited to the web. Typography Served

The concept is easy to botch, but if executed correctly I think it can make a visually striking design. I don't think it's so much to do with the hex values as it is to understand how to use the yellow throughout. I would, however, make sure to not use a full #000 black background as I think yellow on that is overwhelming for the eyes.


I think a darker shade would be better. More like gold or yellow orange

  • 2
    Can you explain why a darker shade would be better? BTW: Welcome to GD.SE!
    – Mensch
    Commented Jan 5, 2015 at 8:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.