Short answer
Black and white make gray. Add black to white a little at a time for light gray, or more for charcoal. For richer grays, mix two complementary colors, such as blue and orange, and lighten with white. On screens, gray has equal red, green and blue values: the CSS color gray is #808080, or rgb(128, 128, 128).
Last verified against the sources listed below.
Key takeaways
- Black plus white makes a neutral gray; add black into white in small amounts.
- Complementary pairs, such as blue and orange, plus white make livelier grays.
- Ultramarine and burnt umber with white give an adjustable warm or cool gray.
- On screens, any color with equal R, G and B values is a gray.
- In CSS, gray is #808080, but darkgray (#A9A9A9) is actually lighter than gray.
Gray looks like the plainest color to mix, and the basic version is. But a gray made only from black and white can feel flat. Painters often prefer grays with a slight color bias, mixed from complementary colors.
The table covers the main routes. The sections below explain ratios, temperature and screen codes.
| Method | Mix | Result |
|---|---|---|
| Basic | White + a little black | Neutral gray |
| Complementary | Blue + orange + white | Lively, slightly colored gray |
| Painter’s favorite | Ultramarine + burnt umber + white | Adjustable warm or cool gray |
| Tinted | Neutral gray + a dot of color | Warm, cool, green or blue gray |
Black and white: the simple gray
Add black to white, not white to black. Black is strong, so a small dot of it turns a pile of white light gray. Going the other way uses far more white to reach the same shade.
- 1 part black, 10 parts white: pale silver gray.
- 1 part black, 4 parts white: mid gray.
- 1 part black, 1 part white: charcoal.
This gray is clean and predictable. The trade-off is that it can look lifeless next to other colors, because tube black has no color bias.
Complementary colors make richer grays
Two opposite colors cancel each other into a dark neutral, and white turns it into gray. The result keeps a faint trace of color, which makes it feel natural.
My Modern Met recommends equal parts ultramarine blue and burnt umber as a black substitute, and notes that mixing it with white makes a great gray. Will Kemp Art School also suggests that pair in place of tube black for the same flexibility.
| Pair | Gray it gives |
|---|---|
| Ultramarine + burnt umber | Neutral, easy to tilt warm or cool |
| Blue + orange | Slightly warm or cool, depending on ratio |
| Red + green | Soft, earthy gray |
| Purple + yellow | Muted, slightly brown gray |
The free Complementary Color Finder shows any color’s opposite, so you can pick a pair from your own palette.
Warm grays and cool grays
Temperature comes from a tiny bias toward red-yellow (warm) or blue-green (cool). Designers and painters both use the distinction.
- Warm gray: add a dot of burnt umber, red or yellow ochre.
- Cool gray: add a dot of ultramarine or phthalo blue.
- Greige: gray plus a little beige or raw umber.
- Blue gray or slate: gray plus more blue.
For screen work, the Warm Gray Color Code page shows one common warm gray with its HEX and RGB values.
Gray on screens: equal R, G and B
Any screen color with equal red, green and blue values is a neutral gray. Lower values give darker grays, higher values give lighter ones.
| Name | HEX | RGB |
|---|---|---|
| Light gray | #D3D3D3 | rgb(211, 211, 211) |
| Silver | #C0C0C0 | rgb(192, 192, 192) |
| Dark gray | #A9A9A9 | rgb(169, 169, 169) |
| Gray | #808080 | rgb(128, 128, 128) |
| Dim gray | #696969 | rgb(105, 105, 105) |
Notice that dark gray is lighter than gray. CSS inherited its color names from the X11 list, and the X11 color names article explains how gray and dark gray ended up out of order. The keywords themselves are defined in the W3C CSS color specification.
In print, a neutral gray is usually black ink alone. #808080 converts to roughly 0% cyan, 0% magenta, 0% yellow and 50% black.
Gray in design
Gray carries most of the text and structure in modern interfaces. Borders, secondary text and backgrounds are often grays.
Light gray text on white is a common accessibility problem. Gray #808080 on white has a contrast ratio of about 3.9:1, which falls short of the 4.5:1 target for normal text. The Color Contrast Checker tells you how dark a gray needs to be for your text size.
A small set of planned grays keeps a design consistent. The Color Shades Generator produces an even scale from any starting color, including a tinted gray.
Fixing a gray that looks wrong
A gray that looks off usually has an unwanted color bias. Hold it next to a pure white and a pure black to see the lean clearly.
If it looks too blue, add a dot of orange or umber. If it looks too brown, add a dot of blue. If it looks green, add a speck of red. Then lighten or darken with white or black as a final step.
Frequently asked questions
What two colors make gray?
Black and white make gray. Start with white and add black slowly, because black is far stronger. For a more natural gray, mix two complementary colors such as blue and orange or red and green, then add white until you reach the lightness you need.
How do you make gray without black?
Mix two complementary colors and add white. Ultramarine blue with burnt umber is the most common pair: it makes a near-black that turns into soft grays with white. Red with green and purple with yellow also work, though each leans slightly toward one side.
How do you make warm gray or cool gray?
Tip a neutral gray toward warm with a dot of red, orange or brown, and toward cool with a dot of blue or green. With the ultramarine and umber method, simply use more umber for warm gray or more ultramarine for cool gray.
What is the HEX code for gray?
The CSS keyword gray (or grey) is #808080, which is rgb(128, 128, 128). Other named grays are silver (#C0C0C0), light gray (#D3D3D3), dim gray (#696969) and dark gray (#A9A9A9). Any HEX code with three equal pairs, such as #555555, is a neutral gray.
Why is darkgray lighter than gray in CSS?
It is a quirk of history. CSS took its color names from an older X11 color list, where gray was defined differently. When CSS adopted the HTML value of gray as #808080, darkgray kept its X11 value, #A9A9A9, which ended up lighter.
Sources
- Grey · Wikipedia, 2026
- Curious About Color Mixing? Here Are the Basics You Need to Know · My Modern Met, 2026
- Are these 3 Black Paint Myths Holding You Back? · Will Kemp Art School, 2026
- CSS Color Module Level 4 · W3C, 2026
- X11 color names · Wikipedia, 2026