Verificador de Contraste

Verifique as relações de contraste de cores em relação às diretrizes WCAG 2.1 instantaneamente. Garanta que seu texto seja legível e seu design acessível a todos. Gratuito e fácil de usar.

Publicidade
Publicidade

Um verificador de contraste avalia a legibilidade do texto contra uma cor de fundo calculando a proporção de contraste das WCAG (Diretrizes de Acessibilidade de Conteúdo Web). A proporção varia de 1:1 (sem contraste) a 21:1 (contraste máximo entre preto e branco). WCAG 2.1 exige pelo menos 4,5:1 para texto normal e 3:1 para texto grande. Esta ferramenta calcula proporções usando a fórmula oficial do W3C, inteiramente no seu navegador.

Ensure your colors meet WCAG accessibility standards

Real-time contrast ratio calculation with AA and AAA pass/fail indicators. Live text preview, instant HEX input, and copy-ready values — all in your browser.

WCAG 2.1 compliant
Visualização ao vivo
Gratuito ilimitado

Como usar

  1. 1

    Insira as Cores

    Insira os códigos HEX para as cores do texto e do fundo.

  2. 2

    Visualize a Prévia

    Veja como seu texto fica em tempo real.

  3. 3

    Verifique a Proporção

    Revise a proporção de contraste calculada.

  4. 4

    Valide a Conformidade

    Verifique se passa nos padrões WCAG AA/AAA.

Por Que a Acessibilidade é Importante

Alcance um Público Mais Amplo

Torne seu conteúdo utilizável para pessoas com deficiência de visão de cores (cerca de 1 em cada 12 homens e 1 em cada 200 mulheres), bem como para pessoas com baixa visão.

Melhore a Experiência para Todos

Um bom contraste melhora a legibilidade para todos, especialmente em telas escuras ou sob luz solar intensa.

Publicidade

Entendendo contraste de cores e acessibilidade

WCAG contrast requirements explained

The Web Content Accessibility Guidelines (WCAG) 2.1, published by the W3C, define minimum contrast ratios to ensure text is readable by people with visual impairments. The guidelines specify three conformance levels: A (minimum), AA (standard), and AAA (enhanced). For Level AA, the requirements are 4.5:1 for normal text (below 18pt or 14pt bold) and 3:1 for large text (18pt+ or 14pt+ bold). For Level AAA, the requirements are stricter: 7:1 for normal text and 4.5:1 for large text.

The contrast ratio is calculated using the relative luminance of the two colors. Relative luminance is a weighted sum of the linearized RGB channels: L = 0.2126*R + 0.7152*G + 0.0722*B, where R, G, and B are gamma-corrected values (each channel is linearized by applying: if c <= 0.03928 then c/12.92 else ((c+0.055)/1.055)^2.4). The contrast ratio is then (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color and L2 is the darker color. The 0.05 offset accounts for ambient light flare on the screen.

These requirements are not arbitrary -- they're based on extensive research on human vision. About 8% of men and 0.5% of women have some form of color vision deficiency (color blindness). Low contrast affects not only these users but also anyone viewing a screen in bright sunlight, on a low-quality display, or at an angle. Meeting WCAG AA contrast requirements improves readability for everyone, not just users with disabilities. In many jurisdictions (EU, US ADA), WCAG compliance is a legal requirement for public-facing websites.

Publicidade

Erros comuns de contraste e como corrigi-los

The most common contrast mistake is using light gray text on a white background. A common design trend uses #999 or #AAA gray text for secondary information, but these colors have contrast ratios of 2.85:1 and 2.32:1 respectively -- well below the 4.5:1 minimum. For secondary text on white, use #767676 (4.54:1) or darker. Another common issue is using brand colors that look good visually but fail contrast checks -- a brand's light blue (#00BFFF) on white has a ratio of 2.32:1, failing WCAG AA. Darken brand colors for text use or use them only for non-text elements (borders, backgrounds, icons).

For large text (headings, buttons), the 3:1 requirement is more forgiving, but don't abuse it. Large text that barely passes 3:1 is still hard to read for many users. Aim for 4.5:1 whenever possible, regardless of text size. When using colored backgrounds, test both the text color and any text that might appear on hover or focus states. CSS custom properties (variables) make it easier to maintain consistent contrast -- define your color palette with contrast-tested pairs and reuse them throughout your design system.

Publicidade

Entendendo as Classificações do WCAG

Nível AA (Padrão)

Exige 4.5:1 para texto normal, 3:1 para texto grande. A meta padrão para a maioria dos sites.

Nível AAA (Avançado)

Exige 7:1 para texto normal, 4.5:1 para texto grande. Acessibilidade aprimorada para usuários com perda de visão significativa.

Como isso se compara a outros verificadores de contraste?

A side-by-side comparison of popular WCAG contrast checking tools.

RecursoNovaToolsWebAIMContrast-Ratio.com
WCAG 2.1 AA + AAABoth levelsSIMSIM
Live preview as you typeSIM InstantâneoNÃO EnviarSIM
HEX + RGB inputSIM AmbosHEX onlyHEX only
Color picker integrationEyeDropperNÃONÃO
Large text threshold18pt / 14pt boldSIMSIM
Privacidade (sem servidor)SIM 100% localNÃONÃO

Nosso verificador de contraste usa a fórmula exata de luminância do W3C e funciona inteiramente no seu navegador. Todos os cálculos são instantâneos — sem ida e volta ao servidor, sem recargas de página, sem rastreamento de suas escolhas de cor.

Perguntas frequentes

O que é contraste de cores e por que é importante?
O contraste de cores é a diferença de brilho entre uma cor de primeiro plano e seu fundo. Um alto contraste garante que pessoas com deficiências visuais possam perceber seu conteúdo de forma eficaz.
Logotipos são obrigados a atender a esses padrões?
Não, as diretrizes do WCAG fornecem exceções para texto que faz parte de um logotipo ou nome de marca, bem como para texto que é puramente decorativo.
Como posso corrigir uma baixa taxa de contraste?
Aumente a diferença de luminância. Torne a cor clara mais clara ou a cor escura mais escura. Use nossa visualização ao vivo para experimentar.
Como posso corrigir uma baixa taxa de contraste?
Increase the difference in luminance between the text and background. The most effective approach is to make the light color lighter or the dark color darker. For example, if your text is `#666666` on a white background (contrast ratio 5.7:1, passes AA), but you want to use a lighter gray for aesthetic reasons, you can darken the background instead. Our tool's live preview lets you experiment with different HEX values and see the contrast ratio update in real time. A general rule: pure black on pure white gives the maximum contrast ratio of 21:1. Any deviation from black/white reduces the ratio.
Como a taxa de contraste é calculada?
The contrast ratio is calculated using the WCAG 2.1 formula, which uses relative luminance values. First, the relative luminance (L) of each color is calculated using a formula that accounts for the non-linear response of the human eye to different color channels (a gamma correction of approximately 2.2). Then the contrast ratio is (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color and L2 is the darker color. The +0.05 accounts for ambient light flare. The result ranges from 1:1 (no contrast) to 21:1 (maximum contrast, black on white). Our tool performs this calculation instantly as you type.
Qual é a diferença entre WCAG 2.1 e WCAG 2.2?
WCAG 2.2, published in October 2023, adds a few new success criteria but does not change the contrast requirements from WCAG 2.1. The contrast ratios (4.5:1 for normal text, 3:1 for large text at Level AA) remain the same. WCAG 2.2 does add a requirement for 'focus visible' (2.4.11) which means focus indicators must have at least 3:1 contrast against adjacent colors. Our tool checks against the WCAG 2.1 contrast criteria, which are identical to WCAG 2.2 for contrast purposes. If you pass WCAG 2.1 contrast, you also pass WCAG 2.2 contrast.
Esta ferramenta verifica acessibilidade para daltonismo?
This tool specifically checks luminance contrast, which is the WCAG requirement. Color blindness (more accurately, color vision deficiency) is a separate concern — it affects the ability to distinguish between colors, not brightness. However, meeting WCAG contrast requirements significantly helps users with color vision deficiency, because higher luminance contrast makes it easier to distinguish text from background regardless of hue. For full color blindness accessibility, never rely on color alone to convey information — always provide a text label, icon, or pattern as well.
Meus dados de cor são enviados para um servidor?
No. All contrast calculations happen entirely in your browser using JavaScript. The HEX values you enter are processed locally by the browser's JavaScript engine — they are never transmitted to our servers, stored in a database, or shared with third parties. The tool does not use cookies, local storage, or session storage to persist your color choices. There are no analytics scripts tracking which colors you test. This makes the tool safe to use for proprietary brand colors, confidential design systems, or client work where color choices should not be exposed to third parties.

Sua privacidade é nossa prioridade

Esta ferramenta funciona inteiramente no seu navegador. Seus arquivos não são enviados, armazenados ou analisados.

  • Não enviamos, armazenamos ou analisamos seus arquivos.
  • Tudo o que você processa permanece no seu dispositivo.
  • Não há processamento do lado do servidor, nem armazenamento em nuvem, nem análise.

Mesmo se sua conexão com a internet cair, seus arquivos permanecem seguros.

Você também pode gostar

Guias uteis

Publicidade