Convert HEX, RGB, HSL, and Android #AARRGGBB with opacity, plus live WCAG AA/AAA accessibility contrast ratios.
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).
| Opacity | Hex Prefix | Example (White) |
|---|---|---|
| 100% | FF | #FFFFFFFF |
| 80% | CC | #CCFFFFFF |
| 60% | 99 | #99FFFFFF |
| 50% | 80 | #80FFFFFF |
| 20% | 33 | #33FFFFFF |
| 0% | 00 | #00FFFFFF |
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.
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.
Yes, 3-digit, 6-digit, and 8-digit hex formats are supported.
Convert px, dp, and sp across mdpi, hdpi, xhdpi, xxhdpi, and xxxhdpi with smallest-width qualifiers.
Convert CSS px to rem and em based on custom root font-size, complete with a copyable typography & spacing scale.
Estimate input/output tokens and compare API costs across GPT, Claude, Gemini, and DeepSeek.
Beautify, validate, sort keys, and minify JSON locally in your browser.