Color y contraste
Convierte colores entre HEX, RGB, HSL y OKLCH, y comprueba el contraste WCAG 2.1 sobre fondos claros y oscuros.
Se ejecuta por completo en tu navegador: nada de lo que pegues se sube.
El texto normal necesita 4.5 : 1 (AA) o 7 : 1 (AAA). El texto grande y los bordes de interfaz, 3 : 1.
:root {
--color-brand: #3B82F6;
--color-brand-rgb: 59 130 246;
--color-brand-hsl: hsl(217, 91%, 60%);
--color-brand-oklch: oklch(62.3% 0.188 259.8);
}@theme {
--color-brand: #3B82F6;
}
text-brand bg-brand border-brand
text-[#3B82F6] bg-[#3B82F6]Referencia de contraste WCAG
referencia rápida- 4.5 : 1
- Mínimo para texto normal de cuerpo en nivel AA, hasta 24px regular o 18.66px en negrita.
- 3 : 1
- Mínimo AA para texto grande y para bordes e iconos de componentes de interfaz.
- 7 : 1
- Nivel AAA para cualquier tamaño de texto; 4.5 : 1 es AAA para texto grande.
- (L1 + 0.05) / (L2 + 0.05)
- La fórmula de contraste, donde L es la luminancia relativa con corrección gamma.
- #RRGGBBAA
- El hex de ocho dígitos añade canal alfa; CSS rgb() usa 0-255 y un alfa de 0-1.
- OKLCH
- Luminosidad y croma perceptualmente uniformes, así que pasos iguales se ven iguales y los tonos mantienen el contraste.
Guías de sintaxis de React
Todas las guías de ReactReact 19 Ref Cleanup Functions and forwardRef Deprecation
ref is a normal prop now and a ref callback may return a cleanup function, which breaks every implicit-return callback. Migration steps and the leak it fixes.
ReactReact 19 Hydration Mismatch: Error 418 and 421 Root Causes
React discards the server HTML as soon as the first client render differs. The deterministic-value fixes for #418, the attribute mismatch behind #421, and how to read the diff.
ReactReact Maximum Update Depth Exceeded: Finding the Update Loop
Fifty nested updates and React gives up. The loop is always a new identity: an inline object in a dependency array, a setState in render, or a selector that returns a fresh array.
ReactReact Profiler API: Measuring Render Timings and Identifying Wasted Re-Renders
actualDuration versus baseDuration, phase names that tell you who triggered a commit, and how to ship the numbers without flooding a backend.