Color combinations / Black and Gray
Black and Gray color combination
One of the two is a neutral, which makes this an easy, safe pairing.
Do they work together?
Yes. Black and Gray have a contrast ratio of 5.32:1, which passes WCAG AA for body text.
Contrast is the same in both directions. Check other pairs in the contrast checker.
See it in use
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Copy the colors
--black: #000000; --gray: #808080;
More with black
Common questions
Do black and gray go well together?
One of the two is a neutral, which makes this an easy, safe pairing. Yes. Black and Gray have a contrast ratio of 5.32:1, which passes WCAG AA for body text.
What are the hex codes for black and gray?
Black is #000000 and Gray is #808080.
Can I use black text on gray?
Yes. Black and Gray have a contrast ratio of 5.32:1, which passes WCAG AA for body text.