The color attribute is the product's colour written as a word, for example "green" or "black/grey". Google requires it for clothing in selected countries and for every product whose variants differ in colour. It helps customers filter offers and tell variants apart. On Heureka and Zboží, colour is sent as a parameter.
What is color
Colour is one of the first things customers choose by – they want the T-shirt in blue, the tent preferably in green. The color attribute is the field where you give the colour as a word, the way a customer sees it. It is not the manufacturer's colour code or a shade number.
If a product has several colours, list a maximum of three and put the main colour first.
What it looks like in a feed
<!-- Google Merchant -->
<g:color>green</g:color>
<g:color>black/grey</g:color> <!-- several colours, main one first -->
<!-- Heureka / Zboží -->
<PARAM>
<PARAM_NAME>Colour</PARAM_NAME>
<VAL>green</VAL>
</PARAM>In a Google feed, colour has its own element; on comparison sites, it is an ordinary parameter.
What it is used for
- Google uses it for clothing and colour variants to show a colour picker and filter offers. For variants that differ in colour, the field is required.
- Meta recommends colour for clothing and wants it as a word, not a code.
- Heureka and Zboží build a filter from the "Colour" parameter.
- Online shops use colour to tell variants apart on one product page.
What to watch out for
- Codes and numbers instead of words –
#00FF00, "col. 304". Google won't accept them. - "Multicolor" or "various colours". Google rejects values like these; list the specific colours.
- Marketing names for shades – "forest dawn". Neither customers nor filters understand them; use the basic colour.
- A different language from the rest of the feed – "grün" in an English feed.
- A value that is too long. Google accepts a maximum of 100 characters, and up to 40 characters for a single colour.
How Sortyra helps
In the output for Google, Sortyra fills in color automatically – from the colour field, from a variant parameter or from a parameter named "Colour" in any EU language. The Shades to basic colours recipe in Rules turns shades such as "burgundy" or "royal blue" into basic colours for filters and for Google.
Related terms
- Size – size
- Material – material
- item_group_id – linking variants
- Parameters – PARAM / product_detail
- Gender – gender
- Longer article: Product attributes and variants
Frequently asked questions
Is colour required in a Google feed?
Yes, for clothing targeted at selected countries and for all variants that differ in colour. For other products, it is optional.
How do I write a product with two colours?
Separate the colours with a slash and put the main one first: black/grey. A maximum of three colours.
Can I use the manufacturer's colour code?
Not as the color value. You can keep the code in the title or in the parameters, but color should contain the colour as a word.