HEX
#336699
RGB
#336699
rgb(51, 102, 153)
Help Us Improve
—
(—)
Hex to RGB converter
Convert hex to RGB and rgb() with live preview. Paste #rrggbb, copy channels—local-first, no signup.
What is a hex to RGB converter?
Hex to RGB features
Hex input first
Paste #rrggbb or use the picker—channels follow your hex code.
Channel sliders
Dial Red, Green, and Blue to fine-tune after a hex paste.
Copy rgb() and hsl()
One-click copy for stylesheets and design handoffs.
Bidirectional edits
Change hex or RGB—both sides stay in sync.
How to convert hex to RGB
Enter HEX
Paste #rrggbb or pick a color in the HEX field.
Read RGB
Check channel values and the rgb() string in the sidebar.
Copy what you need
Copy RGB, hsl(), or hex for your file or stylesheet.
Tips for hex and RGB
- 01
Lowercase hex in CSS
This tool outputs lowercase #rrggbb—valid everywhere in modern CSS.
- 02
Sample from UI
Eyedrop a hex on Image Color Picker, then paste it here for RGB channels.
- 03
Need the reverse?
RGB sliders starting from rgb()? Open RGB to HEX instead.
- 04
Check contrast
After converting text colors, verify pairs on Colour Contrast Checker.
Great for
Design tokens
Turn brand hex codes into rgb() for CSS variables.
Debug styles
See channel intensities behind a mystery # color in DevTools.
Specs and briefs
Translate client hex into rgb() for motion or video tools.
Why convert here
Local-first
Colors never leave the browser for this tool.
Free
Unlimited conversions with no signup.
Live preview
Swatch updates as you edit hex or channels.
Related tools
Pair with RGB to HEX and the hex color blog guide.
Technical notes
- Mapping
- Each hex byte pair → channel 0–255; combined rgb() string.
- Inputs
- #rgb, #rrggbb, color picker, channel sliders, rgb() paste.
- Outputs
- rgb(), hsl(), and normalized lowercase hex.
- Privacy
- Client-side only—no network upload.
Sources & References
“The <hex-color> CSS data type is a notation for describing the hexadecimal color syntax of an sRGB color using its primary color components (red, green, and blue) written as hexadecimal numbers.”
MDN — <hex-color>: Defines #rrggbb as hexadecimal encoding of RGB channel bytes—what this tool decodes. developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/hex-color
“Hexadecimal (hex) string notation uses a hexadecimal value to represent each component (red, green, and blue) of an RGB color.”
MDN — CSS color values: Explains how hex notation maps to rgb() components. developer.mozilla.org/en-US/docs/Web/CSS/Guides/Colors/Color_values
“The sRGB color space is an RGB color space with defined chromaticities and a defined transfer function.”
W3C CSS Color Module: Defines the sRGB model behind typical web hex and rgb() values. w3.org/TR/css-color-4/