This section provides some pass and fail examples.
Sufficient contrast for all states
a {
color: #0055cc; /* Contrast ratio: 7.1:1 on white */
}
a:hover,
a:focus {
color: #003399; /* Contrast ratio: 5.2:1 on white */
}Large-scale text requires 3:1 contrast
.large-link {
font-size: 24px;
color: #666666; /* Contrast ratio: 4.2:1 */
}
.large-link:hover {
color: #555555; /* Contrast ratio: 3.5:1 */
}Insufficient contrast in default state
a {
color: #888888; /* Contrast ratio: 2.5:1 on white */
}
Fix:
a {
color: #0055cc; /* Contrast ratio: 7.1:1 */
}Hover/focus state fails contrast requirement
a {
color: #0055cc; /* Good contrast */
}
a:hover {
color: #999999; /* Contrast ratio: 2.8:1 */
}Fix:
a:hover {
color: #003399; /* Contrast ratio: 5.2:1 */
}Large text fails contrast minimum (requires 3:1)
.large-link {
font-size: 24px;
color: #aaaaaa; /* Contrast ratio: 2.7:1 */
}Fix:
.large-link {
color: #666666; /* Contrast ratio: 4.2:1 */
}
HowThis section provides instructions on how to review and fix the issue.
Use sufficiently contrasting colors
a {
color: #004488; /* Contrast 7.1:1 */
}
a:hover {
color: #002266; /* Contrast 5.8:1 */
}Use contrast detection tools such as:
Ensure that large text meets the 3:1 requirement
.large-link {
font-size: 24px;
color: #555555; /* Contrast 3.5:1 */
}Acquia Color Contrast Checker
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Ensure that large text meets the 3:1 requirement
.large-link {
font-size: 24px;
color: #555555; /* Contrast 3.5:1 */
}If this content did not answer your questions, try searching or contacting our support team for further assistance.