The rule doesn't say that all of each color must be contiguous, only that every cell must be part of a single contiguous region of that color. The grey cells don't have to connect to the grey background.
ohhhhhh