Gray and White
Neutral color combination with 3.95:1 contrast ratio
Color Values
#808080128, 128, 1280, 0%, 50%#FFFFFF255, 255, 2550, 0%, 100%Harmony: Neutral
Both colors are achromatic, so this pairing works through lightness contrast alone. The combination reads as a tonal or monochromatic scheme — clean, restrained, and useful for backgrounds and typography.
The hue angle between Gray and White is 0 degrees (though one or both colors are achromatic, so hue angle is less relevant than lightness contrast). You can explore these relationships interactively in our Color Wheel Tool.
WCAG Contrast
UI Preview
Gray surface
Sample text on a gray background demonstrates readability and visual hierarchy.
White surface
Sample text on a white background demonstrates readability and visual hierarchy.
Design Tokens
CSS Variables
:root {
--color-a: #808080;
--color-b: #FFFFFF;
--color-a-rgb: 128, 128, 128;
--color-b-rgb: 255, 255, 255;
}JSON
{
"name": "Gray and White",
"colors": [
{
"name": "Gray",
"hex": "#808080",
"rgb": [
128,
128,
128
]
},
{
"name": "White",
"hex": "#FFFFFF",
"rgb": [
255,
255,
255
]
}
],
"harmony": "Neutral",
"contrastRatio": 3.95
}Related Combinations
Frequently Asked Questions
Do gray and white go together?
Yes. Gray and White form a neutral color combination. Both colors are achromatic, so this pairing works through lightness contrast alone. The combination reads as a tonal or monochromatic scheme — clean, restrained, and useful for backgrounds and typography. The pairing has a WCAG contrast ratio of 3.95:1, which passes AA for large text but not for body text.
What is the contrast ratio between gray and white?
The WCAG 2.1 contrast ratio between Gray (#808080) and White (#FFFFFF) is 3.95:1. This passes AA for large text (18pt+ or 14pt+ bold) but not for normal-sized body text.
How do I use gray and white in design?
A safe starting point is the 60/30/10 rule: give one color about 60 percent of the surface area, the other about 30 percent, and reserve the remaining 10 percent for an accent or neutral. If one color is significantly darker, use it for text or structural elements and the lighter one for backgrounds. Test the result with our Contrast Checker if text is involved.
What are the hex and RGB values for gray and white?
Gray has the hex code #808080 and RGB values rgb(128, 128, 128). White has the hex code #FFFFFF and RGB values rgb(255, 255, 255). You can copy these directly into CSS or use the design tokens provided on this page.