McDonald's uses the yellow of its “Golden Arches” and red as its main colors. Red appears on backgrounds, packaging and storefronts, and yellow on the logo. In some countries, restaurants also use dark green and neutral tones. The HEX codes are common conversions of the brand's Pantone shades.
These are commonly used reference values; they can vary by source, material or screen. Brand names and colors belong to their owners; this page only lists color codes for information.