Skip to main content
🟢 Beginner

HEX to RGB Penukar

Gunakan HEX to RGB Penukar ini untuk mendapatkan hasil yang cepat dan tepat.

↔ Swap

Cara menggunakan kalkulator ini

  1. Masukkan HEX Color (e.g. #FF8000 or FF8000)
  2. Klik butang Kira
  3. Baca keputusan yang dipaparkan di bawah kalkulator

HEX to RGB Conversion

A HEX color code is a 6-character string (#RRGGBB) where each pair of digits represents a color channel in hexadecimal. To convert, parse each pair and convert from base 16 to decimal.

Examples:

3-Digit vs 6-Digit HEX

CSS also accepts 3-digit HEX codes (#RGB) as shorthand when each pair is a repeated digit. Example: #F80 expands to #FF8800. This converter handles both formats automatically.

Color in Design Tools

Design tools like Figma, Adobe XD, and Photoshop show HEX codes in their color pickers. Developers often need to convert these to RGB for use in JavaScript canvas operations, CSS filters, or programmatic color blending. RGB values make it easy to adjust brightness or mix colors mathematically.

Frequently Asked Questions

How do I convert HEX to RGB?

Split the 6-digit HEX into three pairs (RR, GG, BB) and convert each from base 16 to decimal. Example: #1A2B3C → R=26, G=43, B=60.

What is #FF5733 in RGB?

#FF5733 = rgb(255, 87, 51) — a shade of red-orange.

What is a valid HEX color code?

A valid HEX code is a # followed by 6 hexadecimal digits (0–9 and A–F). Example: #4A90E2. Shorthand 3-digit codes like #FFF are also valid.

Kemas kini terakhir: March 2026