One input, a normalized code
The tool accepts standard CSS names, 3/4/6/8-digit HEX and supported absolute RGB/HSL functions. Output uses uppercase 6-digit HEX for opaque colors and 8 digits when alpha is below one.

ONELESS / COLOR
A color may arrive as a familiar word, an RGB function or an HSL value. Hex Color Code Finder turns that starting point into one compact HEX code. A large color specimen, name suggestions and equivalent values help you recognize the result before copying it into your next design or line of CSS.
Open Hex Color Code Finder. JavaScript powers the workspace; the full guide is available below.
UNDERSTAND THE RESULT
The tool accepts standard CSS names, 3/4/6/8-digit HEX and supported absolute RGB/HSL functions. Output uses uppercase 6-digit HEX for opaque colors and 8 digits when alpha is below one.
The final two HEX digits encode opacity from 00 to FF. Transparent produces #00000000. A checkerboard makes transparency visible but is not included in the copied color.
RGB and HSL calculations can contain fractions. HEX rounds each color channel, and alpha when present, to one of 256 byte values. Equivalent RGB/HSL labels describe the parsed input and can retain more precision.
HOW TO USE IT
A WORKED EXAMPLE
Enter rebeccapurple to obtain #663399. Its RGB channels are 102, 51 and 153; its HSL coordinates are 270°, 50% and 40%. These describe the same opaque sRGB color.
EVERYDAY USES
Turn a CSS keyword from an example or stylesheet into a HEX value for a design application.
Convert an rgba() or alpha HEX value without silently flattening it onto white. Check it against the actual background in your project.
LOCAL WORKSPACE
The tool processes color values locally. It does not upload the input to a processing server or save it in browser storage. Leaving or reloading the page clears the working state. Copying places the selected result on your clipboard; sharing sends only the page address without your working values.
These tools describe sRGB colors. Browser decoding, color management and the display can affect what you see; they are not an ICC proofing workflow or a print-color guarantee. Read the site privacy policy for information about the surrounding website.
KEEP IT NEARBY
Press Ctrl + D on Windows or Command + D on Mac to bookmark this page. Your browser may also offer Create shortcut or Add to Home Screen. Shortcuts open the tool; they do not include your colors or images.

QUESTIONS, ANSWERED
This tool resolves text values. Image Color Picker is the separate tool for sampling pixels from an image.
Only standard CSS names are recognized. Partial names receive suggestions, but custom brand descriptions are not inferred.
No. The supported input formats are named colors, HEX, RGB and HSL. Contextual values such as currentColor and relative colors need page context and are not resolved.
HEX alpha uses one byte. A decimal such as 0.5 becomes 80, approximately 0.502, so exact decimal opacity may be rounded.
The CSS named color rebeccapurple is #663399. Enter the name to see the code and its visual preview.
No. #663399 and the same value using uppercase letters where applicable identify the same channels. Use one writing style consistently in your project.
Yes. Use the value with a CSS property, for example color: #663399;. The name and HEX are alternative representations when they identify the same named color.
REFERENCES
ANOTHER SMALL STEP
A name or a value. One HEX code ready to use.
Return to Hex Color Code Finder ↑