Last updated: March 2, 2026

How to Convert RGB to Hexadecimal

Formula

Each RGB component (0-255) is converted to a two-digit hex value. For example, RGB(66,133,244) becomes #4285F4.

This calculator also computes perceived brightness using the luminance formula.

Common use cases:

  • Web design color specification
  • CSS and HTML color coding
  • Graphic design color matching

Frequently Asked Questions

Share & Embed

Was this calculator helpful?

Related Calculators