πŸ”’No files storedπŸ›‘HTTPS encrypted⚑Works in your browserπŸ†“100% free, no signup
🎨

HEX ↔ RGB Converter

Convert between HEX and RGB colour codes instantly. Includes HSL, CSS and more.

232
Red (R)
93
Green (G)
4
Blue (B)
RGBrgb(232, 93, 4)
RGBArgba(232, 93, 4, 1)
HEX#E85D04
CSS Variable--color: #E85D04;

Related Tools

Color Palette Generator
Try this tool β†’
CSS Gradient Generator
Try this tool β†’
Color Blindness Simulator
Try this tool β†’

How to Use the HEX ↔ RGB Converter

Switch between the two most common colour formats instantly, in either direction.

  1. Step 1: Enter a hex code (e.g. #E85D04) or RGB values (e.g. 232, 93, 4).
  2. Step 2: The other format updates live in the opposite input.
  3. Step 3: Confirm the colour matches your expectation using the live swatch.
  4. Step 4: Copy either format directly to your clipboard.

Common Use Cases

🎨
Web Design
Translate brand colours from HEX (logo) to RGB (CSS animations).
πŸ’„
CSS Styling
Quickly check whether two colour formats are actually identical.
πŸ–ŒοΈ
Figma / Sketch
Move colour values between design tools and code editors.
🧩
Design Systems
Standardize colour token formats across teams and tooling.

Frequently Asked Questions

What is a hex color code?

A 3- or 6-character hexadecimal string prefixed with # that represents a colour's red, green, and blue values. Each pair of hex digits maps to a 0–255 value: #E85D04 means red 232, green 93, blue 4.

What does RGB mean?

Red, Green, Blue β€” the three colour channels in additive colour mixing. Each ranges from 0 to 255 (8 bits per channel), so RGB can express roughly 16.7 million distinct colours.

Why do hex codes have 6 digits?

Three pairs of hex digits, one pair per channel. Two hex digits store a single byte (0x00–0xFF), which is exactly the 0–255 range each RGB channel uses.

Can hex codes be 3 digits?

Yes β€” shorthand notation. #F60 expands to #FF6600. Useful when each channel has both nibbles equal; otherwise you need the full 6-digit form.

What is the difference between RGB and RGBA?

RGBA adds an alpha (opacity) channel from 0 (fully transparent) to 1 (fully opaque). The hex equivalent is RGBA / 8-digit hex (#RRGGBBAA), supported in modern browsers.

Why Use the ConvertDox HEX ↔ RGB Converter?

Web developers and designers shuffle between HEX and RGB colour formats constantly β€” and the conversion math, while not difficult, is the kind of small task that breaks flow. The ConvertDox HEX ↔ RGB Converter handles both directions live: type in one format and the other updates instantly, with a colour swatch confirming the result. It accepts both shorthand 3-digit hex codes (#F60) and full 6-digit codes (#FF6600), and accepts RGB values as comma-separated numbers, function-call syntax (rgb(255, 102, 0)), or just digits separated by spaces. The conversion is bidirectional and lossless because both formats describe the same underlying 8-bit-per-channel sRGB colour. Working in your browser means no data leaves your device β€” relevant if you're sampling colours from confidential brand guidelines. For broader colour work, ConvertDox includes a palette generator, a CSS gradient builder, and a colour blindness simulator β€” but for the single most common conversion task in web work, this page is the fastest. See our HEX vs RGB guide for when to choose one format over the other.