% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{calculate_contrast_ratio}
\alias{calculate_contrast_ratio}
\title{Web Accessibility Utility Functions}
\usage{
calculate_contrast_ratio(foreground, background)
}
\arguments{
\item{foreground}{Foreground color (hex format, e.g., "#111827")}

\item{background}{Background color (hex format, e.g., "#ffffff")}
}
\value{
Numeric contrast ratio (1-21)
}
\description{
Functions for ensuring WCAG 2.1 Level AA compliance in the Shiny application

Calculates the contrast ratio between two colors according to WCAG 2.1 standards
using the relative luminance formula from W3C guidelines.
Used to verify text/background color combinations meet accessibility requirements.
}
\section{WCAG 2.1 Level AA Compliance}{

This package follows Web Content Accessibility Guidelines (WCAG) 2.1 Level AA:
\itemize{
\item 1.1.1 Non-text Content (Level A): Alt text for images and visualizations
\item 1.4.3 Contrast Minimum (Level AA): 4.5:1 ratio for normal text, 3:1 for large text/UI
\item 2.1.1 Keyboard (Level A): Full keyboard navigation support
\item 2.4.1 Bypass Blocks (Level A): Skip navigation links
\item 3.1.1 Language of Page (Level A): Page language identification
\item 4.1.2 Name, Role, Value (Level A): ARIA labels and roles
Calculate Color Contrast Ratio
}
}

\section{WCAG Requirements}{

\itemize{
\item Normal text: Minimum 4.5:1 (Level AA)
\item Large text (18pt+ or 14pt+ bold): Minimum 3:1 (Level AA)
\item UI components and graphics: Minimum 3:1 (Level AA)
}
}

\keyword{internal}
