Da Hex a RGB
Converti colori esadecimali a 3, 6 e 8 cifre in RGB, RGBA e HSL nel browser.
Verifica il contrasto WCAG tra colore del testo e dello sfondo, con esito superato/non superato per AA e AAA.
Questo strumento funziona nel tuo browser. Dati inseriti, file e valori generati restano su questo dispositivo. Preferiti e strumenti recenti, se li usi, salvano solo i nomi degli strumenti nella memoria locale: mai password, documenti o contenuti dei codici QR. Consulta l’informativa sulla privacy.
Per ora la guida dettagliata di questo strumento (come si usa, esempi e domande frequenti) è disponibile in inglese.
Compare two solid colors and show the WCAG 2 contrast ratio for normal and large text. Designers checking a button label against its background use it before they ship the pair. Black on white is 21:1, and a photograph behind the text is outside the calculation.
The ratio is 21:1, which meets every listed WCAG contrast criterion.
A pair such as #777777 on #999999 fails normal-text AA because the ratio is well below 4.5:1.
The tool uses WCAG 2 relative luminance. A pass means the pair meets the selected WCAG contrast criterion. Contrast is only one part of accessibility. Font size, weight, spacing and keyboard access still matter. The checker does not claim a design is universally accessible.
The result is the WCAG 2 contrast ratio of two colors the parser can read. A pass is not a full accessibility audit. Font size is not read from a stylesheet, and a color the parser rejects produces no ratio.
See the disclaimer for what these tools do not cover.
Converti colori esadecimali a 3, 6 e 8 cifre in RGB, RGBA e HSL nel browser.
Scegli un colore con il selettore del browser e copia i valori HEX, RGB o HSL.
Crea gradienti CSS lineari, radiali o conici, o testo sfumato, e copia il CSS o l’HTML.
Stima i colori dominanti di un’immagine JPG, PNG o WebP a partire da pixel campionati.
Regola offset, sfocatura, estensione e colore, poi copia un valore CSS box-shadow.
Formatta il JSON in modo leggibile, minificalo o verifica che sia valido. Commenti, virgole finali e apici singoli non sono ammessi. Non converte in CSV.
Normal sample text
Large sample text
18.88:1
Foreground #111111 (rgb(17, 17, 17), hsl(0, 0%, 7%)) on #ffffff (rgb(255, 255, 255)).
WCAG 2.1 contrast uses relative luminance. Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text (18pt or 14pt bold) needs 3:1 for AA and 4.5:1 for AAA.
A pass means the pair meets the selected WCAG contrast criterion. Contrast is only one part of accessibility. Spacing, size, motion and keyboard use still matter.