Color Converter & Contrast Checker
Convert colors between HEX, RGB, and HSL, and check WCAG contrast.
#1A6741rgb(26, 103, 65)hsl(150, 60%, 25%)#FFFFFFrgb(255, 255, 255)hsl(0, 0%, 100%)Recommended next steps
Related tools
Convert text between camelCase, snake_case, kebab-case, Title Case, and more.
Encode or decode text to and from base64, with a URL-safe variant.
Create a QR code from any text or link and download it as PNG or SVG.
Frequently asked questions
It reads and writes HEX (including 3-, 4-, 6- and 8-digit), RGB/RGBA, and HSL/HSLA. Enter any of them and the others update instantly.
Using the WCAG 2 relative-luminance formula. The ratio ranges from 1:1 (no contrast) to 21:1 (black on white). AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.
WCAG defines large text as about 18pt (24px) regular, or 14pt (about 18.66px) bold, and up. Large text passes at a lower ratio because bigger glyphs are easier to read.
Last updated 2026-06-20.