Skip to content
$TinyFreeTools
Images
Featured tools
  • IMImage compressorCompress JPG, PNG, and WebP images in batches or aim for an exact file-size target.
  • IMImage resizerResize an image by pixels, percentage, or common dimensions while preserving its proportions.
  • IMImage format converterConvert compatible browser images between JPG, PNG, WebP, and AVIF when supported.
Other images tools
  • Image cropper
  • Rotate & flip image
  • Remove image metadata
  • Image watermark
  • Favicon generator
  • Social image resizer
All 9 images tools
PDF
Featured tools
  • PDMerge PDFCombine multiple PDF files into one document in the order you choose.
  • PDSplit & extract PDF pagesExtract a page range or selected pages from a PDF into a new document.
  • PDImages to PDFPlace JPG or PNG images into a single PDF with automatic page sizing.
Other pdf tools
  • Organize PDF pages
  • Rotate PDF pages
  • Watermark PDF
  • Add PDF page numbers
  • Remove PDF metadata
All 8 pdf tools
QR
Featured tools
  • QRQR code generatorCreate QR codes for links, text, Wi-Fi, contacts, email, SMS, events, menus, and review pages.
Open the collection
Color
Featured tools
  • COColor converterTranslate colors between HEX, RGB, HSL, HSV, and OKLCH-style values.
  • COWCAG contrast checkerMeasure the contrast ratio between text and background colors.
  • COColor palette generatorGenerate a coordinated palette from a base color using predictable color relationships.
Other color tools
  • Image color picker
  • CSS gradient generator
  • CSS box-shadow generator
  • CSS filter generator
All 7 color tools
Developer
Featured tools
  • DEJSON formatter & validatorValidate JSON, format it with readable indentation, or minify it for transport.
  • DERegex testerTest a JavaScript regular expression against sample text with flags and match details.
  • DEUUID generatorGenerate one or many cryptographically random version 4 UUIDs.
Other developer tools
  • JSON diff
  • YAML ↔ JSON converter
  • CSV ↔ JSON converter
  • Base64 & URL encoder
  • JWT decoder
  • UTM campaign URL builder
  • Markdown preview
All 10 developer tools
Text
Featured tools
  • TEWord & character counterCount words, characters, sentences, paragraphs, lines, and estimated reading time.
  • TECase converterConvert text to upper, lower, title, sentence, camel, Pascal, snake, or kebab case.
  • TEText difference checkerCompare two pieces of text line by line and highlight additions and removals.
Other text tools
  • URL slug generator
  • Remove duplicate lines
  • Whitespace cleaner
  • Reading time calculator
All 7 text tools
Convert
Featured tools
  • COAspect ratio calculatorCalculate a missing width or height while preserving an image or video ratio.
  • COPX ↔ REM converterConvert CSS pixel and rem values using a configurable root font size.
  • COData size converterConvert bytes across decimal KB/MB/GB and binary KiB/MiB/GiB units.
Other convert tools
  • DPI & PPI calculator
  • Paper size converter
  • Recipe scaler
  • Cooking unit converter
All 7 convert tools
Date & time
Featured tools
  • DAMeeting time plannerCompare a proposed meeting time across several world time zones.
  • DAUnix timestamp converterConvert Unix seconds or milliseconds to a readable date and back again.
  • DAAge calculatorCalculate age in years, months, and days as of a chosen date.
Other date & time tools
  • Date difference calculator
  • Business days calculator
  • Countdown timer
All 6 date & time tools
Guide · Color & CSS tools

How to get the hex code of a color from an image

Matching a brand color from a logo, or borrowing a shade from a photo you love, starts with the exact hex value. Load the image, click the pixel, and copy the code straight into your CSS or design tool.

Open the free image color picker →Free · no signup · no watermarks

Step by step

  1. Open the image color picker. Start the free picker — it works with photos, logos, and screenshots.
  2. Load your image. Drop in the file that contains the color you want.
  3. Click the exact spot. Zoom in if needed and click the pixel; the picker reads that precise point.
  4. Copy the hex code. Grab the hex, RGB, or HSL value and paste it into your project.

Tips that save a second try

  • Logos often use slight gradients — sample two or three nearby pixels and pick the value that appears most.
  • Screenshots of a screen are more accurate than photos of a screen, which shift colors with lighting.
  • Build a small palette by sampling the image's main areas, then check your text contrast before shipping the design.

Common questions

Why does the hex code differ from the official brand color?

Compression and display rendering can shift pixel values slightly. When an official brand guide exists, treat the sampled value as a close starting point and confirm against the published palette.

What is the difference between hex and RGB?

They describe the same color in different notations: hex packs red, green, and blue into one #RRGGBB string, while RGB lists the three numbers separately. Use whichever your tool or stylesheet expects.

Ready to do it? Image color picker → · More color & css tools · All guides

$TinyFreeTools

Useful little tools that do the job and respect your files.

Private by design

Toolbox

ImagesPDFQRColorDeveloperTextConvertDate & time

About

About the projectGuidesPrivacyTermsContact
© 2026 TinyFreeToolsYour files stay private — and the tools stay free.
How to get the hex code of a color from an image | TinyFreeTools