HEX to RGB Converter
Enter a HEX color code and instantly get the RGB and HSL values with a live preview.
91
Red
91
Green
214
Blue
rgb(91, 91, 214)
CSS RGB
hsl(240, 60%, 60%)
CSS HSL
How to Use This Tool
- Open the HEX To RGB and provide the inputs requested in the form above.
- The HEX To RGB processes your input directly in your browser and shows the result on the same page.
- Copy or save the output, then adjust the inputs anytime to see an updated result.
Common Use Cases
- Data migration: Engineers convert between formats when moving data between systems with incompatible representations.
- Educational verification: Students check homework answers by converting between standard units or notations.
- Cross-team collaboration: Teams using different conventions exchange data via a common intermediate format produced by the Hex To Rgb.
Frequently Asked Questions
What precision does the Hex To Rgb preserve?
Numeric conversions use IEEE 754 double-precision (15-17 significant decimal digits). Lossless integer conversions remain exact up to 2^53. For exact decimal arithmetic on very large or very small values, use a server-side BigDecimal or arbitrary-precision library.
What's the supported input range?
The converter handles the full range allowed by the source format's specification. Values outside that range (e.g., negative durations, out-of-spec characters) are rejected with an error rather than silently truncated. Check the input format docs for exact limits.
Can I convert in both directions?
Yes. The converter is bidirectional: switch the source and target fields to reverse the conversion. Round-trip conversions are exact for lossless format pairs and approximate (with documented precision) for lossy ones.