What is an easy way in HTML/JS/++ to display a coloured key symbol/picture where it’s color can be easily changes? [closed]

Solution for What is an easy way in HTML/JS/++ to display a coloured key symbol/picture where it’s color can be easily changes? [closed]
is Given Below:

Have a need to display a key symbol that occasionally needs to change colors. The background for this is to display a key with a color that corresponds to the current (& possibly previous one..) key that is being used for a remote gate that club members need to access. Intent is to display this on the club website..

Been looking at key symbol / ascii tables etc, but can’t find a picture / symbol that makes sesen.. and of course could always use colored images, but want something simple to update. Hence the question. 😉