Gray Color Codes (Shades of Gray)
Slate, silver, gainsboro, charcoal, gunmetal, battleship and 25 more shades of gray with HEX, RGB, HSL and CMYK codes, plus a 10% lightness step table.
Grays are the backbone of interfaces: text, borders, backgrounds and disabled states. This page lists 31 grays — the 10 CSS named grays such as gray, silver, gainsboro, slategray and dimgray, plus ash, battleship, charcoal, gunmetal, platinum, taupe gray and others, cool and warm — with HEX, RGB, HSL, HSV, CMYK and OKLCH codes, and a table of neutral grays in 10% lightness steps. CSS accepts both spellings: gray and grey are the same color.
How to use this tool
- Choose a shade of gray from the list.
- Copy its HEX, RGB or HSL code.
- Use the 10% step table to build an evenly spaced gray scale.
- Check the readable text color before using a gray as a background.
Formula
neutral gray at HSL lightness L% = round(L × 2.55) on all three channels
A neutral gray has R = G = B. Grays with slightly more blue (slate, cadet) feel cool; with more red and yellow (greige, cinereous) they feel warm. HSL steps are even in numbers but not in perception — the OKLCH column shows the perceived lightness of each step.
Example
Slate gray (slategray) is #708090 = rgb(112, 128, 144), hsl(210, 12.6%, 50.2%): a gray tinted blue by 32 steps from red to blue. In the 10% step table, 50% lightness is 127.5 → #808080, CSS gray, and 30% is 76.5 → #4D4D4D.
Frequently asked questions
Why is darkgray lighter than gray in CSS?
gray (#808080) comes from the 16 original HTML colors, while darkgray (#A9A9A9) comes from the X11 color list, where plain gray was #BEBEBE. CSS kept both definitions, so "dark" gray ended up lighter.
Gray or grey?
Both spellings work everywhere in CSS: gray, grey, darkgrey, lightslategrey and so on are exact synonyms.
What is the lightest gray that passes WCAG for text on white?
#767676 is the lightest neutral gray that reaches 4.5:1 on white. #777777 already falls just below (4.47:1).
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/gray-color-code/
Cite or embed this tool
kakaoCalc. (2026, November 8). Gray Color Codes (Shades of Gray). https://kakao.mobile/tools/gray-color-code/
“Gray Color Codes (Shades of Gray).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/gray-color-code/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms