Color Codes › Gray vs Grey
Gray vs Grey
Gray and Grey are actually the same colour. Here are the codes and the reason behind the two names.
Gray
Hex#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
OKLCHoklch(0.60 0.00 90)
Grey
Hex#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
OKLCHoklch(0.60 0.00 90)
The difference between gray and grey
These are the same colour — gray and grey are simply the American and British spellings. Both map to the identical hex value; CSS accepts both keywords interchangeably.
Because they share the exact same hex value (#808080), you can use either name in CSS and get an identical result. The choice is purely about spelling or convention.
Quick reference
Gray: #808080 · rgb(128, 128, 128) · hsl(0, 0%, 50%)
Grey: #808080 · rgb(128, 128, 128) · hsl(0, 0%, 50%)
Frequently asked questions
What is the difference between gray and grey?
These are the same colour — gray and grey are simply the American and British spellings. Both map to the identical hex value; CSS accepts both keywords interchangeably.
What is the hex code for gray?
Gray is #808080 (rgb(128, 128, 128)).
What is the hex code for grey?
Grey is #808080 (rgb(128, 128, 128)).
Popular colours
Sage green
Navy blue
Teal
Coral
Burgundy
Terracotta
Mint green
Shades of blue
Shades of pink
All colour codes →