HEX to RGB ממיר
השתמש ב-HEX to RGB ממיר לקבלת תוצאות מהירות ומדויקות.
איך להשתמש במחשבון זה
- הזן HEX Color (e.g. #FF8000 or FF8000)
- לחץ על כפתור חשב
- קרא את התוצאה המוצגת מתחת למחשבון
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:
- #FF0000 = rgb(255, 0, 0) — Red
- #00FF00 = rgb(0, 255, 0) — Green
- #0000FF = rgb(0, 0, 255) — Blue
- #FFFFFF = rgb(255, 255, 255) — White
- #808080 = rgb(128, 128, 128) — Gray
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