In order to convert a color to a hexadecimal value, you can use the website Colorpicker.
There you can use the slider on the right to adjust the color area you want.
On the left big pallet you can place your mouse anywhere to get the 6 digits hexadecimal value for the selected color on top which you can select and copy.
Enjoy