Demo This site is currently under maintenance. The information shown here is provided as a demo.

Color Code Converter

Convert between HEX, RGB and HSL; build tint scales and check WCAG contrast.

Use the Tool: Color Code Converter

Enter as HEX (#263a84), RGB or HSL.

Result

Fill in the form and submit — the result will appear here.

HEX, RGB and HSL: Three Languages for the Same Colour

Every colour on the web is the same colour written in three different languages. HEX (like #1a73e8) compresses red-green-blue values into hexadecimal — the most common notation in CSS and design tools. RGB spells out the same three channels as 0–255 numbers and becomes essential when you need transparency (rgba). HSL describes colour closest to human perception: hue (0–360 degrees), saturation and lightness — making a colour lighter or more muted means changing just one value.

Enter a colour in any of the three formats — including the short #abc notation — and you get all three back, plus a 10-step tint/shade scale and a WCAG contrast check against white and black text.

How to Use It

  1. Type your colour code: #1a73e8, rgb(26, 115, 232) or hsl(217, 82%, 51%) — whichever you have.
  2. Click convert: all three formats are listed ready to copy.
  3. Explore the scale: a 10-step palette from five light tints to four dark shades, ready for hover and background variations.
  4. Check the contrast badges: see whether white or black text on your colour passes the WCAG AA/AAA thresholds.

Practical Use Cases

  • Design-to-code handoff: convert the HEX from a design file into the RGB/HSL you prefer in CSS variables.
  • Button states: use one step darker for hover and one lighter for disabled — the palette stays coherent.
  • Extending a brand palette: derive background, border and accent tones from a single brand colour.
  • Accessibility review: verify text readability on your buttons and badges before shipping.

How to Read a HEX Code

The six digits of a HEX code are really three pairs: the first pair writes the red channel's 0–255 value in hexadecimal, the second green, the third blue. In #1a73e8, 1a (26) is little red, 73 (115) medium green and e8 (232) high blue — a vivid blue. #ffffff is white with every channel maxed, #000000 black with all at zero. When each pair repeats its digit, the short form applies: #ffcc00 can be written #fc0, and the tool recognises that notation too. Knowing this lets you roughly guess a colour's family the moment you see its code.

Why WCAG Contrast Matters

The WCAG guidelines require a contrast ratio of at least 4.5:1 between text and its background (level AA). The stricter AAA level requires 7:1, and large text passes at 3:1. This is not only about visually impaired users — it matters for anyone reading a phone screen in bright sunlight. Low-contrast interfaces increase form abandonment and hurt conversion. The badges show instantly whether your colour passes those thresholds with white and black text; note that no colour-blindness simulation is performed — the value is the contrast ratio based on the WCAG 2.x relative luminance formula.

Tips

  • Beware mid-greys: a grey around 40–60% lightness contrasts poorly with both white and black; avoid it as a text colour.
  • Systematise with HSL: define theme colours as HSL variables and deriving a dark theme becomes a one-line lightness change.
  • Save the scale: add the 10 steps to your design system as "primary-50 … primary-900" so the whole team uses the same tones.
  • Never rely on colour alone: pair error and success states with icons or text — the accessibility step after picking colours.
  • Try the 60-30-10 rule: a palette feels balanced when 60% of the interface is neutral ground, 30% a secondary colour and 10% an accent; the light tints suit backgrounds while the original colour works as the accent.
  • Soften tones in dark mode: saturated light-theme colours "glow" on dark backgrounds and tire the eye; pick tones one or two steps lighter and less saturated for dark themes.

A consistent palette is the cheapest building block of a professional look. To build a complete visual identity for your brand, see our corporate identity service; to turn the palette into a living interface, see our web design service.

Frequently Asked Questions

Which colour formats are supported?

You can enter HEX (#aabbcc or short #abc), RGB (rgb(26, 115, 232)) or HSL (hsl(217, 82%, 51%)) and get all three back.

What do the WCAG contrast badges mean?

AA (4.5:1) and AAA (7:1) are the thresholds for normal text; the "large text" badge shows the 3:1 threshold. Combinations that pass are considered accessible.

How is the tint/shade scale generated?

Your colour is mixed with white to produce 5 tints and with black to produce 4 shades; together with the original you get 10 steps.

When should I prefer HSL?

When deriving variations. Changing the lightness value in HSL lightens or darkens a colour without distorting it — the most practical format for theme variables and dark mode.

Do you simulate colour blindness?

No. The tool only calculates the contrast ratio against white and black text using the WCAG 2.x formula; use a dedicated simulator for colour-blindness checks.

Terms of Use and Legal Liability

Please read the information below before using the free tools on this page.

⏱️ QR Code Validity Period

QR codes created with this tool are static: the content (URL or text) is encoded directly into the QR image itself. As long as the image is not lost, it never expires and keeps working indefinitely. Whether the code works also depends on the content (e.g. the web address it points to) staying online.

No Data Is Stored

The content you enter is never stored, shared or tracked on our servers. Images are generated on the fly; the QR codes and barcodes you create are returned only to your browser. Keeping the downloaded files safe is the user's responsibility.

Commercial Use & Verification

Before using the generated QR codes and barcodes commercially (product labels, invoices, retail, etc.), always test them with your own scanner/POS system. Formats such as EAN-13 / ITF-14 may require an official GS1 number assignment; this responsibility lies with the user.

Legal Disclaimer

The tools are provided “as is”. Yazılımcımız Dijital Hizmetler cannot be held liable for any material or moral damages arising from misread or lost codes, misuse by third parties, or incorrect content input. Creating illegal, harmful or copyright-infringing content is prohibited.

General Terms of Use

  • The tools are provided "as is", without any warranty.
  • Verifying the accuracy of the generated results and how they are used is entirely the user's responsibility.
  • Tool outputs do not constitute legal, financial or professional advice.
  • The data you enter into the tools is not stored on our servers.
  • Misuse of the tools and creating illegal content is strictly prohibited.

By using this tool you are deemed to have accepted the terms above. For any questions, you can reach us via our contact page.

Call WhatsApp