Hex to RGB
Hex color codes and RGB values describe the same red, green, and blue channels. A Hex code stores each channel as a hexadecimal pair, while RGB writes those channels as decimal numbers from 0 to 255.
How to convert Hex to RGB
Enter a three- or six-character Hex color code. The converter expands shorthand values, calculates the RGB channels, and shows matching HSL, HSV, OKLCH, and CMYK values.
Using RGB values in CSS
RGB values are useful when you want to see or edit the exact red, green, and blue components of a screen color. Use the HTML/CSS column when you need a ready-to-paste CSS color function.