SnappTools logoSnappTools

HEX ↔ RGB Converter

Convert between HEX, RGB, and HSL color formats. Supports 3-char and 6-char hex codes. Live preview swatch.

Pick a color

Accepts 3-char (#F00) or 6-char (#FF0000) hex

Red
Green
Blue
H°
S%
L%

All Formats

#2563EB
rgb(37, 99, 235)
hsl(221, 83%, 53%)

About HEX to RGB

HEX to RGB converts color values between hexadecimal (HEX) and RGB formats instantly. Enter a hex color like #1a2b3c and see the RGB values (26, 43, 60), or enter RGB values to get the hex code. Also supports 3-digit shorthand hex codes like #abc.

CSS supports both formats, design tools often use HEX, and some JavaScript APIs require RGB. Quickly switching between the two is a frequent need in frontend development and design work.

Shows a color preview swatch alongside the converted values.

Features

  • HEX to RGB and RGB to HEX
  • Supports 3-digit and 6-digit hex codes
  • Color swatch preview
  • One-click copy of converted value

Common Use Cases

  • Converting design tool HEX colors to CSS RGB
  • Finding the hex code for known RGB values
  • Checking what color a hex or RGB value represents
  • Converting brand color hex codes for use in different CSS contexts