On this page
Use the strip above to copy any code and try text on each step in the live preview. The contrast score shows right away which pairs are readable. Below you will find exact conversions, contrast ratios I calculated for every pair, and practical advice for screens, print, interiors and art.
Grayscale Color Palette Values: HEX, RGB, HSL and CMYK
Every grayscale color has identical red, green and blue values, so the conversions are simple once you see the pattern. Here are all five steps in the formats designers ask for most, plus each step’s contrast against a white background.
| Name | HEX | RGB | HSL | CMYK | Contrast on white |
|---|---|---|---|---|---|
| Black | 0, 0, 0 | 0°, 0%, 0% | 0, 0, 0, 100 | 21:1 | |
| Dark Gray | 64, 64, 64 | 0°, 0%, 25% | 0, 0, 0, 75 | 10.4:1 | |
| Gray | 128, 128, 128 | 0°, 0%, 50% | 0, 0, 0, 50 | 3.95:1 | |
| Light Gray | 192, 192, 192 | 0°, 0%, 75% | 0, 0, 0, 25 | 1.8:1 | |
| White | 255, 255, 255 | 0°, 0%, 100% | 0, 0, 0, 0 | 1:1 |
The CMYK column is the plain conversion, where each gray becomes a single black ink at the matching percentage. Real presses add dot gain, so a printed 50% black usually looks a little darker than does on screen. The printing section below explains how to deal with that.
What Makes a Color Truly Grayscale
A color is grayscale when its red, green and blue values are equal. That is why is 128, 128, 128 and is 64, 64, 64. With no channel leading, there is no hue and no saturation. HSL shows 0% saturation, and the hue figure (usually written as 0°) means nothing. Only lightness changes from step to step.
In standard 8-bit color there are 256 possible grays, from 0 () to 255 (). Our five steps sit at 0, 64, 128, 192 and 255. Hex shorthand only works when each pair repeats, so #888 expands to , but and have no short form.
How These Grays Differ from Look-Alike Grays
Several near neighbors get mixed up with these steps. Our Light Gray, , is the same value as the CSS named color silver, while the CSS name lightgray means the paler . Some tools also round 255 divided by two down, giving and instead of and . The difference is one level in each channel, which no eye can see, but it matters when you compare codes in a style guide.
In CSS, darkgray is , which is lighter than gray (). When the exact shade matters, write the hex code instead of the name.
Then there are the off-grays. Slate gray () looks neutral at a glance, but its blue channel is higher, so it is a tinted color and not part of a strict grayscale palette. If you need the pure version, check that all three pairs of the hex code match.
Contrast Ratios Between Every Pair (WCAG)
WCAG asks for at least 4.5:1 for normal text and 3:1 for large text and interface components. I calculated the ratios for each pair in this palette from the standard relative luminance formula:
- Black on white: 21:1, the maximum possible
- on white: 10.4:1
- on : 5.7:1
- on black: 5.3:1
- on white: 3.95:1, which fails for body text
- on white: 1.8:1, which fails almost everywhere
The surprise is . It is the mathematical midpoint, yet it is not the visual midpoint of contrast: it passes on black but fails on white. I once fixed a dashboard audit where every secondary label used on white. Swapping the labels to (about 7:1) kept the hierarchy intact and cleared the failures. If you want the lightest gray that still passes AA for normal text on white, it is , at about 4.5:1. For palettes built entirely around strong separation, see our high contrast color palettes.
Which of these passes the WCAG AA 4.5:1 minimum for body text on a white background?
#404040 on white scores about 10.4:1, while #808080 reaches only about 3.95:1 and #C0C0C0 about 1.8:1.
Using Grayscale in Web and UI Design
Grays do most of the quiet work in an interface: text, borders, dividers, disabled states and surfaces. Define them once as variables so the whole product shares one scale:

:root {
--gray-0: #000000;
--gray-25: #404040;
--gray-50: #808080;
--gray-75: #C0C0C0;
--gray-100: #FFFFFF;
}
Watch the borders. An input field that relies on a outline against white sits at 1.8:1, below the 3:1 that WCAG expects for component boundaries. Use (3.95:1) or darker for anything the user needs to find. Save the lighter steps for decorative dividers and backgrounds.
Pure black text on pure white is the strongest pairing, but it can feel harsh on large screens. Many designers set text to or and keep full black for headings and icons. In dark mode, a near-black such as usually looks calmer than as a surface. The full details of the darkest step are on our #000000 page.
Branding, Interiors, Fashion and Art in Grayscale
A gray system makes one accent color look expensive. On a client project I built the whole interface from five grays and a single orange, and the orange never had to compete with anything. The same logic drives many logos: a monochrome version in black, mid gray and white works on any background, packaging or embossed surface. If you want a bold accent partner, try the pairing on our black and green color combination page.
In interiors, grays set the mood by their lightness. Light grays around to widen a small room, while charcoal tones near feel cozy and dramatic, especially with warm wood or brass. In fashion, charcoal, heather and silver gray are wardrobe workhorses because they combine with nearly everything.
Artists use grayscale as a check on value, meaning how light or dark each area is. Painters make gray underpaintings, called grisaille, before adding color, and illustrators often block in shapes in five gray values before choosing hues. Soft pastel palettes, like our pastel rainbow, hold up well when converted to gray because their values stay distinct.
Printing Grays: Why CMYK Can Surprise You
Printing grays is where screen-trained designers get caught. I once sent a brochure that had been converted from RGB to CMYK automatically, and the mid grays in the proof had a faint warm cast. The converter had built each gray from all four inks instead of black alone, so any small drift in ink balance showed up as color.
For neutral grays, set your document to a grayscale or black-only mode, or build tints from K only. Then 25%, 50% and 75% K correspond to the Light Gray, Gray and Dark Gray in this palette. Expect dot gain: a 50% tint prints darker on uncoated paper than on coated stock, so request a proof if the gray carries meaning, such as chart levels.
Small black text should also be K only. Mixing four inks in a thin line risks blurry edges when plates sit a hair out of register. Large solid black areas are the one place where a rich black (black plus some other inks) gives more depth than plain K.
Converting Color to Grayscale: The Luminance Weights
Turning a color into gray is not a simple average of red, green and blue, because our eyes treat the channels unequally. The common Rec. 709 formula weights red at 0.2126, green at 0.7152 and blue at 0.0722. Applied directly to the 0 to 255 values, it turns the pure primaries into very different grays:
- Pure red () becomes about
- Pure green () becomes about
- Pure blue () becomes about
That is why a red and a green of equal brightness on screen can collapse into similar grays and look identical to a color-blind user. In CSS you get the effect with filter: grayscale(1), which is also the quickest way to audit a design.
Try this: Open your site or mockup, apply filter: grayscale(1) in the browser dev tools, and squint. If you can no longer tell the primary button from the page or the heading from the body text, add a lightness difference, not just a hue change.
When a color is converted to grayscale by luminance, which channel counts the most?
Our eyes are most sensitive to green, so it carries about 72% of the weight in the Rec. 709 formula.
Ten Grays You Can Reuse in Any Project
Five steps are fine for a logo, but real interfaces need more. A ten-step scale spaced about 26 levels apart gives you enough room for backgrounds, borders, text and states. This one runs from light to dark:
- and : backgrounds and dividers
- and : disabled controls and decorative lines
- : placeholder text on dark surfaces, not on white
- : the first step that passes AA on white (about 4.7:1)
- and : body and secondary text
- and : headings and dark-mode surfaces
The palettes below start from the classic five-step scale and branch into interface, editorial and print-ready variations.
The classic five-step scale for logos, charts and quick mockups on any screen.

Dark mode surfaces, readable secondary text and light backgrounds for apps and dashboards.
Editorial layouts and portfolios where type needs a calm, even gray ladder.
Round tints that map cleanly to 80, 70, 40, 20 and 5 percent black in print.
Warm, Cool and Neutral Grays: When to Add a Tint
A pure neutral gray can feel flat next to a saturated color, and some people read it as cold. Designers often add two to five percent saturation to give grays a temperature. A warm gray such as pairs well with browns, creams and wood. A cool gray such as slate gray, , sits better with blues and steel.
Tinted grays should still follow the same lightness steps, so your contrast checks stay valid. For a cool, nocturnal direction, our night sky palette shows how blue-leaning darks behave. For muted gray-greens with an outdoor feel, look at camouflage colors. Keep one pure neutral scale in your system as the reference, then derive tinted versions from it.
Every color in this palette
Grayscale Color Palette: questions people ask
What are the hex codes for a grayscale palette?
A simple five-step grayscale palette uses #000000, #404040, #808080, #C0C0C0 and #FFFFFF. Any hex code whose three pairs are identical, such as #333333 or #E0E0E0, is also a true gray.
How many shades of gray are there in grayscale?
In standard 8-bit color there are 256 grays, from 0 (#000000) to 255 (#FFFFFF). That count includes black and white as the two end points.
Are black and white part of a grayscale palette?
Yes. Black and white have equal red, green and blue values, so they count as the two extremes of the gray scale. Most grayscale palettes start and end with them.
What is the difference between gray and grey?
Nothing in color terms. Gray is the usual American spelling and grey the usual British one, and CSS accepts both. The hex code #808080 is the same either way.
Which gray is best for text on a white background?
For comfortable reading, use #595959 or darker, which gives about 7:1 contrast on white. The lightest gray that still passes WCAG AA for normal text is #767676, at about 4.5:1.
Keep exploring
- Skin Tone Hex Codes: Realistic Skin Color Palettes
- Summer Color Palettes: Bright and Trendy Schemes
- Cute Colors: Soft and Pretty Color Palettes
- Fair Skin Tone Colors: Hex Codes and Palettes
- Brown Skin Tones: Hex Codes and Color Palettes
- Venus Planet Colors: Palette and Hex Codes
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes