Color & Pixel

Color Code Lookup

Paste a HEX, RGB or HSL value to preview the exact color and convert between formats.

Examples
Aa
  • HEX#e63946
  • RGBrgb(230, 57, 70)
  • HSLhsl(355, 78%, 56%)

What is Color Code Lookup?

Paste a HEX, RGB or HSL value to preview the exact color and convert between formats. Paste a HEX, RGB or HSL value and see the exact color rendered instantly — no image required. Verify a color copied from CSS, a design spec or a brand guideline before you ship it. A live swatch with synchronized HEX, RGB and HSL readouts, each one-click copyable.

All processing happens locally in your browser. Your images are never uploaded to any server.

Key Features

  • Auto-detects HEX, RGB(A) and HSL(A) syntax as you type
  • Converts across all three formats in one pass
  • Alpha-channel aware, including 3/4/6/8-digit HEX

Common Use Cases

  • Converting between HEX, RGB, and HSL color formats for CSS and design tools
  • Previewing how a specific color appears on light and dark backgrounds
  • Checking WCAG contrast ratios for text accessibility
User Guide

How to use this tool

Color Code Lookup turns a text color value into a color you can actually see. Paste any HEX, RGB or HSL code — from CSS, a design spec, a brand guideline or a chat message — and the tool renders the exact color immediately, together with its equivalents in the other two formats.

How to use it

Type or paste a color code into the input field. The parser recognizes the format automatically: HEX with or without the # sign (3, 4, 6 or 8 digits), rgb()/rgba() with comma, space or slash separators, and hsl()/hsla() including deg/rad/turn hue units. The result updates on every keystroke — there is no button to press.

The preview shows a large swatch of the resolved color plus a value list with HEX, RGB and HSL readouts. Each row has its own copy button, and Copy all places the three values on your clipboard at once.

  • Format auto-detection as you type
  • HEX, RGB and HSL conversions in a single view
  • Alpha channel support with a percentage readout
  • One-click copy per value, or all three together

Practical uses

Design handoffs often mix notations: a brand book specifies HEX, the developer writes rgb() in CSS, and the motion tool exports HSL. Pasting each value here confirms they all resolve to the same color before a mismatch reaches production.

When debugging a "slightly wrong" UI color, paste the suspect value from DevTools and compare the swatch against the design. It is the fastest way to find out whether the problem is the value itself or the layer painted above it.

Frequently Asked Questions

Which formats can I paste?

HEX with or without # (3, 4, 6 or 8 digits), rgb()/rgba() using commas, spaces or slash alpha, and hsl()/hsla() with deg/rad/turn hue units.

Is the previewed color accurate?

Yes — values are converted with standard sRGB math and painted directly by your browser, with no extra rounding beyond the displayed format.

Which color formats can I convert between?

Paste or type HEX (#rrggbb), RGB (r,g,b), HSL (h,s%,l%), or HSV. The tool instantly converts to all other formats and shows a live preview.

Does it check accessibility contrast?

Yes. The contrast ratio against white and black backgrounds is displayed, with WCAG AA/AAA pass/fail indicators.

Can I convert multiple colors at once?

Currently one color at a time. For batch color operations, use the palette reduction or image color editor tools.

Is this tool free to use?

Yes. This tool is completely free with no sign-up, no watermarks, and no daily limits. All processing runs locally in your browser.

Do I need to choose the input format?

No. The parser detects HEX, RGB(A) and HSL(A) syntax automatically and converts between all three formats at once.

Are 8-digit HEX values supported?

Yes. The last two digits are treated as alpha (opacity) and shown both inside the converted values and as a percentage.