diff --git a/drivers/video/console/fbcon.h b/drivers/video/console/fbcon.h
index 0135e03954562713a83b8839b3cd4f57fc21de3b..beb6a74fc7f21a7a82394e340649670668e273c0 100644
--- a/drivers/video/console/fbcon.h
+++ b/drivers/video/console/fbcon.h
@@ -92,7 +92,7 @@ struct fbcon_ops {
 #define attr_fgcol(fgshift,s)    \
 	(((s) >> (fgshift)) & 0x0f)
 #define attr_bgcol(bgshift,s)    \
-	(((s) >> (bgshift)) & 0x0f)
+	(((s) >> (bgshift)) & 0x07)
 
 /* Monochrome */
 #define attr_bold(s) \