Hex ↔ RGB Converter

Convert hex color codes to RGB and HSL, or RGB values back to hex.

Frequently Asked Questions

How does hex map to RGB?

Each pair of hex digits is one channel (00-FF = 0-255). #FF8800 means R=255, G=136, B=0. Three-digit shorthand (#F80) doubles each digit (#FF8800).

What is the difference between RGB and HSL?

RGB describes color by red/green/blue intensity (good for displays). HSL describes hue (0-360 deg), saturation, and lightness (good for picking related shades).

Why does my hex code look different on another screen?

Without color management, the same RGB triplet maps to different physical light depending on the display gamut and calibration. Use sRGB profiles for web work.

How do I add transparency to a hex color?

Use 8-digit hex (#RRGGBBAA). #FF880080 is the same orange at 50% alpha. Modern browsers support this directly in CSS.

Important Disclaimer: Estimates for informational purposes only.

This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.