Color Converter

Convert between HEX, RGB, and Unity Color. For UI and materials.

About this tool

This tool converts HEX, RGB, and Unity Color in one click. Three features: 1) Enter HEX or use color picker, 2) RGB and Unity new Color(r,g,b) shown automatically, 3) Palette save for reuse. Ideal for copying design colors to Unity.

Tool interface

RGB 99, 102, 241
Unity Color
new Color(0.388f, 0.4f, 0.945f)

History (last 5)

Usage

  1. Enter HEX (#RRGGBB) or select color with picker
  2. RGB and Unity new Color(r,g,b) are displayed automatically
  3. Copy the format for materials or scripts

When to use

Copying design tool colors to Unity scripts, sharing material colors as HEX.

Examples

#6366f1 → RGB(99,102,241) → new Color(0.388f, 0.4f, 0.945f)

Tips

  • Unity Color uses 0–1 float. Divide 255 values accordingly.
  • Paste directly into Material Color property.
  • Save palette colors for quick reuse.

FAQ

What's the difference between HEX and RGB?

Same color, different notation. HEX uses #RRGGBB (e.g. #ff0000), RGB uses (255,0,0). HEX is common in web/CSS, RGB in image editors.

Why does Unity Color use 0–1 values?

Normalized values work well across color depths and match shaders/APIs. Divide by 255 or use Color32 for 0–255.

What does # mean in color codes?

Prefix for HEX notation. #RRGGBB: R=red, G=green, B=blue, each 2 hex digits (00–FF).

How to convert HEX to RGB?

Each HEX pair is one RGB component. #FF = 255, #00 = 0. Reverse: divide RGB by 255 and convert to hex.

Related tools