Those are the quick disconnects that attach to your beer and CO2 posts on the keg. I assumed you were talking about posts at the beginning of this thread, I read to quickly.
As mentioned above, Black is beer, Grey is Gas. They each go on their respective post on the keg. These disconnects can accidentally be installed on the incorrect post but it takes effort and if you do get them to go it takes a heck of a lot of effort to get off as mentioned above. (Been there done that with my first keg)
The keg should have a stamping next to each post that indicates IN (CO2) and OUT (Beer) It's good to be famliar with the different physical aspects of each post becuase they are very similar. You'll want to be able to identify them after you've removed disassembled for cleaning and reassembled. The parts inside are interchangeable but not the posts themself. Here's a thread that might clear things up a bit.
https://www.homebrewtalk.com/f35/ball-lock-corny-keg-gas-vs-beer-post-137058/