Skip to main content
Color Tools
Popular
Recently added

HEX to RGB Converter

Convert colors between HEX and RGB with a live preview swatch.

Introduction

HEX to RGB Converter (and RGB to HEX) helps designers and developers translate color notations quickly. Supports 3-digit and 6-digit hex values with local conversion only.

Features

  • HEX → RGB and RGB → HEX
  • 3-digit HEX support
  • Live color preview
  • Copy either format

How to use

  • 1
    Edit the HEX field or any RGB channel.
  • 2
    The other format updates automatically.
  • 3
    Copy HEX or rgb() as needed.

Example

Material blue

Input
#1976d2
Output
rgb(25, 118, 210)

Benefits

  • Use HEX ↔ RGB without installing a desktop app or browser extension.
  • Works well alongside Case Converter and JSON Formatter for adjacent steps in the same workflow.
  • Results stay in this browser tab until you copy or download them.

FAQs

This converter focuses on opaque HEX and RGB triples.

Yes. 3-digit HEX is expanded to 6 digits.

No. Conversion is local.

Pair HEX ↔ RGB with Case Converter, JSON Formatter, Slug Converter. See Related tools on this page.


Developer resources