Saltar al contenido

Verificador y Corrector de Contraste de Color WCAG 2.2

Verifica relaciones de contraste según estándares de accesibilidad W3C WCAG 2.2 y obtén sugerencias automáticas de corrección para AA y AAA.

Verificador listo. Introduce o selecciona colores para evaluar conformidad.
WCAG 2.2 AA / AAA

Verificador de Contraste WCAG 2.2

Selección de Colores

Combinaciones Accesibles Populares
Relación de ContrasteContraste Mejorado (Supera AAA)
14.63:1

Relación de luminancia relativa calculada según la fórmula oficial W3C WCAG 2.2 (L1 + 0.05) / (L2 + 0.05).

Texto Normal✓ AA
Texto Grande✓ AA
Elementos Gráficos e Interfaz✓ AA

Resultados de Conformidad WCAG 2.2

Texto Normal

16px / Normal

Texto de párrafo e inputs menores a 18pt (24px) o 14pt (18.66px) negrita

Nivel AA (>= 4.5:1)Aprobado
Nivel AAA (>= 7.0:1)Aprobado

Texto Grande

>= 24px / 18.66px negrita

Títulos y textos de al menos 18pt (24px) o 14pt (18.66px) negrita

Nivel AA (>= 3.0:1)Aprobado
Nivel AAA (>= 4.5:1)Aprobado

Elementos Gráficos e Interfaz

SC 1.4.11

Bordes de formulario, botones e iconos (WCAG 2.2 SC 1.4.11)

Nivel AA (>= 3.0:1)Aprobado
* WCAG SC 1.4.11 define el contraste para elementos no textuales solo en el Nivel AA (sin criterio AAA).

Vista Previa en Vivo

Tipografía Normal de Párrafo (16px / 400)

Un buen contraste es fundamental para el diseño web inclusivo. Garantiza que el contenido sea legible bajo diversas condiciones de luz y para personas con baja visión o daltonismo.

Tipografía de Título Grande (24px / 700)

Tipografía Clara y Accesible para Todos

Componentes de Interfaz Interactivos (WCAG SC 1.4.11)
Insignia de Estado

Asistente Inteligente de Corrección y Sugerencia de Color

¿Necesitas colores aprobados? Mantén fijo el fondo o el primer plano para encontrar el color más cercano dentro del espacio sRGB que cumpla tu objetivo minimizando la distancia.

Mantener Fijo
Relación Objetivo

¡La combinación actual ya cumple o supera la relación seleccionada! (14.63:1 >= 4.5:1)

How WCAG 2.2 Color Contrast Works

Digital accessibility depends fundamentally on sufficient perceptual contrast between text, interface elements, and their background surfaces. The W3C Web Content Accessibility Guidelines (WCAG 2.2) establish clear mathematical criteria to ensure digital interfaces remain completely legible and operable for people with moderately low vision, color vision deficiencies (protanopia, deuteranopia, tritanopia), aging eyes, and under adverse ambient lighting conditions.

The W3C Relative Luminance & Contrast Formula

Contrast in WCAG is calculated using the relative luminance of colors in the standard sRGB color space. The relative luminance (L) of an sRGB color is determined by linearizing each 8-bit color channel (R, G, B) and weighting them according to human spectral eye sensitivity:

L = 0.2126 * R_linear + 0.7152 * G_linear + 0.0722 * B_linear
Where C_linear = (C / 255 <= 0.04045) ? (C / 255) / 12.92 : ((C / 255 + 0.055) / 1.055)^2.4

The contrast ratio between two colors is then defined as:

Contrast Ratio = (L1 + 0.05) / (L2 + 0.05)

Where L1 is the relative luminance of the lighter color and L2 is the relative luminance of the darker color. The addition of the 0.05 offset represents ambient flare compensation. This yields a ratio ranging from 1.0:1 (identical colors) up to 21.0:1 (pure black on pure white).

WCAG 2.2 Success Criteria & Thresholds

  • Normal Text (WCAG SC 1.4.3 & 1.4.6): Body text, form field labels, and descriptions require at least 4.5:1 for Level AA and 7.0:1 for enhanced Level AAA.
  • Large Text (WCAG SC 1.4.3 & 1.4.6): Text that is at least 18pt (24px) regular weight or 14pt (18.66px) bold requires at least 3.0:1 for Level AA and 4.5:1 for Level AAA.
  • Graphical Objects & User Interface Components (WCAG SC 1.4.11): Visual information required to identify user interface components (such as form field borders, button outlines, and active state indicators) and graphical objects (such as standalone icons and chart elements) requires at least 3.0:1. Note that the W3C specification defines non-text contrast at Level AA only, without an AAA requirement.

Smart In-Gamut Color Remediation

When a selected color pairing fails your target contrast ratio, our remediation optimizer allows you to hold either the foreground or background color fixed. The engine searches candidate colors along the sRGB lightness dimension to find the exact counterpart that satisfies the selected target ratio (3.0:1, 4.5:1, or 7.0:1) while strictly minimizing the Euclidean color distance (ΔE) to your original design.

Frequently Asked Questions

¿Cómo se calcula la relación de contraste WCAG 2.2?
Se calcula utilizando la fórmula W3C (L1 + 0.05) / (L2 + 0.05), donde L1 es la luminancia relativa del color más claro y L2 la del color más oscuro en el espacio sRGB. El rango va de 1:1 a 21:1.
¿Cuál es la diferencia entre Nivel AA y AAA en WCAG?
El Nivel AA es el estándar de accesibilidad obligatorio según legislaciones internacionales. El Nivel AAA ofrece contraste reforzado para usuarios con impedimentos visuales severos (7.0:1 en texto normal y 4.5:1 en texto grande).
¿WCAG 2.2 incluye Nivel AAA para componentes no textuales de interfaz?
No. El Criterio de Conformidad 1.4.11 (Contraste no textual) se define únicamente en Nivel AA con un mínimo de 3.0:1. No existe nivel AAA para componentes de interfaz no textuales.
¿Cómo busca el Optimizador de Corrección el color sugerido?
Mantiene fijo el color seleccionado y busca alternativas dentro de la gama sRGB ajustando la luminosidad para cumplir la meta de contraste mientras minimiza la distancia perceptual euclidiana (ΔE) con tu diseño original.