Skip to main content
🟢 Beginner

HEX to RGB مبدل

از HEX to RGB مبدل برای دریافت نتایج سریع و دقیق استفاده کنید.

↔ Swap

نحوه استفاده از این ماشین حساب

  1. HEX Color (e.g. #FF8000 or FF8000) را وارد کنید
  2. روی دکمه محاسبه کلیک کنید
  3. نتیجه نمایش داده شده در زیر ماشین حساب را بخوانید

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.

آخرین به‌روزرسانی: March 2026