CSS tool
RGB to HEX Converter / HEX to RGB Converter
An RGB to HEX converter that also turns HEX into RGB. Paste a color, drag the channels, and copy CSS. It all stays on your device.
Like the tool? Find a bug?Share with usConverter
Paste rgb() or a hex color, or drag the channels. Conversion stays on your device.
Preview
#0ea5e9/rgb(14, 165, 233)
#0ea5e9
rgb(14, 165, 233)
color: #0ea5e9;
bg-[#0ea5e9] text-[#0ea5e9]