Skip to content
QuickTool logoQuickTool

RGB to HEX

Convert RGB/A to hex color codes

Start

#3366ff

Description

Convert rgb(r, g, b) values to #RRGGBB hex. Supports comma‑separated input and CSS rgb() syntax.

Use this to translate design tokens or inspect computed styles.

Key features

  • Accepts r,g,b or rgb(r,g,b)
  • Uppercase/lowercase toggle for hex
  • Copy with one click

Related tools

How to Use

  1. Enter a value like rgb(51, 102, 255) or 51,102,255.
  2. Toggle uppercase if your style guide requires it.
  3. Click “Copy Output”.

Example

Example

rgb(51, 102, 255) → #3366ff

FAQ

Alpha supported?

Alpha is ignored for hex output; supply rgba() to keep it in a separate tool.

Spaces allowed?

Yes, common spacing works.