Color Converter & WCAG Contrast Checker

Convert HEX, RGB, HSL, and Android #AARRGGBB with opacity, plus live WCAG AA/AAA accessibility contrast ratios.

How It Works & Reference

Pick a color or enter any HEX (#38bdf8), RGB, or #AARRGGBB string, adjust Alpha opacity (0–100%), and compare foreground against background to check WCAG AA (>=4.5:1) and AAA (>=7.0:1).

Android Alpha Hex Opacity Table

OpacityHex PrefixExample (White)
100%FF#FFFFFFFF
80%CC#CCFFFFFF
60%99#99FFFFFF
50%80#80FFFFFF
20%33#33FFFFFF
0%00#00FFFFFF

Frequently Asked Questions

Why does Android use #AARRGGBB instead of #RRGGBBAA?

Android Color.parseColor and XML resources put Alpha in the first byte (#AARRGGBB), whereas CSS 4 hex puts Alpha last (#RRGGBBAA). This tool outputs both.

What is a passing WCAG AA contrast ratio?

Normal body text needs at least 4.5:1 for AA (7.0:1 for AAA); large text (>=18pt or 14pt bold) needs 3.0:1 for AA.

Can I enter shorthand 3-digit hex like #f60?

Yes, 3-digit, 6-digit, and 8-digit hex formats are supported.

Related Tools