↑ ↓ to moveEnter to openEsc to close

HexaCalc: free hex color codes, converters and color tools

Type a color in any format and get every other format, its closest name and how readable text is on it. Then pick colors from photos, build palettes and check contrast, all in your browser.

Try
#0F766E
White text
Black text
  • HEX 
  • RGB 
  • HSL 
  • HSV 
  • CMYK 
  • Lab 
  • OKLCH 
  • Name 

Want the same color as a palette? Try it in the palette generator or the color wheel.

All tools

Pick

Grab exact colors from a photo, your camera, your screen or a picker.

Create

Build palettes, harmonies, gradients and shade ramps.

Check

Contrast, color blindness and color vision screening.

Convert

Move one color between HEX, RGB, HSL, CMYK, OKLCH and more.

Personal color

Seasonal color analysis, the quiz and all 12 season palettes.

Color families

Named shades with HEX codes you can copy.

Hex math

Base-16 arithmetic and number conversions.

More tools

Games, Minecraft codes, resistors and grayscale photos.

What the calculator above does

Paste #0F766E, rgb(15 118 110), hsl(175 77% 26%) or even teal and HexaCalc reads it, then writes it back out in eight formats. The name line searches a list of about 4,900 hand-picked color names from the open-source meodai/color-names project and shows the closest one by CIEDE2000, the color-difference formula print shops use.

The two contrast boxes answer the question designers ask most: can I put text on this? A ratio of 4.5:1 is the WCAG 2.2 minimum for body text and 3:1 is the minimum for large text. Our sample teal gives white text 5.47:1, so it passes for buttons and links.

Why a whole site about hex codes

A HEX code like #D9481C is three bytes written in base 16: D9 red, 48 green, 1C blue. That compact form is how colors travel between Figma, CSS, Tailwind configs and brand guidelines. Most of the work people do with color is moving a code between formats, finding codes that work together, or checking a code is readable and printable. Each tool here handles one of those jobs well rather than all of them badly.

Everything runs on your device. Photos you open in the image picker, frames from the camera identifier and screenshots you paste are read by your browser and are never uploaded. There is no account to make and nothing to install.

Where to start

Designers usually start with the palette generator and finish in the contrast checker. Developers tend to need the HEX to RGB and RGB to HEX converters. If you have a photo with a color you love, the image color picker will give you its exact code, and the color mixer shows what happens when you blend it like paint.

HexaCalc is independent and free, paid for by a small number of ads placed below the tools, never over them. Read more about how the site works.