We suggest using Adobe Color. This tool even lets you upload an image (e.g. your logo) and shows you the color values you might use in your CSS.
Here's how you can find the exact color code or name you'll need for your CSS code.
Written by Colin Connor
Updated over a week ago