The color gray can be represented in various ways, such as RGB (Red, Green, Blue) color model, where the same value for red, green, and blue results in gray tones. The value can range from 0 (black) to 255 (white) for each color component. Additionally, gray shades can be specified using the HSL (Hue, Saturation, Lightness) color model, where the hue is 0° for true gray. In web design, gray shades are commonly specified using hexadecimal color codes.