Skip to main content
🟢 Beginner

HEX til RGB-färgkonverterer

Convert HEX color codes to RGB values instantly. Perfect for web development, CSS, and digital design.

↔ Swap

Slik bruker du denne kalkulatoren

  1. Skriv inn HEX Color (e.g. #FF8000 or FF8000)
  2. Klikk på Beregn-knappen
  3. Les resultatet som vises under kalkulatoren

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.

Sist oppdatert: March 2026

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.