PyCharm Community makes it easy to specify colors in CSS files. The color properties have icons of the corresponding color in the editor gutter.

Click an icon to choose the desired color using the color picker.

CSS color