DevKitBase
ToolsAboutPrivacy

Hex to RGB when the design token is hex and the CSS wants rgb

Paste `#0ea5e9` or `0ea5e9`; get `rgb(14, 165, 233)` plus optional alpha.

chars: 7
Input
Output

When to use

Translating design tokens or debugging computed styles from hex.

Examples

Input
#047857
Output
rgb(4, 120, 87)
Input
#fff
Output
rgb(255, 255, 255)

How it works

Parses 3/6/8-digit hex → channel integers (and alpha when present).

Common pitfalls

  • Missing # is often accepted; invalid hex isn’t.
  • 8-digit hex includes alpha — check your target CSS.
  • Relative color syntax is out of scope.

How this differs

Hex→RGB here; RGB→Hex the other way.

FAQ

Alpha in hex (`#RRGGBBAA`)?
Support if present.
Named colors?
Out of scope.
Reverse?
RGB to Hex.
Uploaded?
No.

Related tools

Runs in your browser. Nothing is uploaded. Not a security product —hashes and JWT decode are for debugging, not password storage or auth advice.