c# - Converting from RGB ints to Hex - Stack Overflow

PHOTO EMBED

Tue Sep 20 2022 18:40:01 GMT+0000 (UTC)

Saved by @javicinhio #cs

using System.Drawing;
Color myColor = Color.FromArgb(255, 181, 178);
string hex = myColor.R.ToString("X2") + myColor.G.ToString("X2") + myColor.B.ToString("X2");
content_copyCOPY

https://stackoverflow.com/questions/13354892/converting-from-rgb-ints-to-hex