Contrast Checker

#E74C3C vs Green

Aa #e74c3c text on #008000
Aa #008000 text on #e74c3c
1.34:1 contrast ratio · fails WCAG AA (normal text)

Try your own colors

A separate live sandbox — it won't change the "#E74C3C vs Green" result below. Use the permanent-page link to get a dedicated page for a different pair.

vs

WCAG pass/fail for #E74C3C vs Green

RequirementNeedsResult
AA — normal text 4.5:1 ✕ Fail
AA — large text 3.0:1 ✕ Fail
AAA — normal text 7.0:1 ✕ Fail
AAA — large text 4.5:1 ✕ Fail
UI components & graphics 3.0:1 ✕ Fail

#E74C3C against other backgrounds

Formula

WCAG contrast is based on relative luminance — a weighted, gamma-corrected mix of the red, green and blue channels: L = 0.2126·R + 0.7152·G + 0.0722·B (each channel linearized from sRGB first).

The contrast ratio is then (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color's luminance and L2 the darker — giving a value from 1:1 (identical colors) to 21:1 (pure black on pure white).

Use it in code

Click to copy.

.element {
  color: #e74c3c;
  background: #008000;
  /* contrast ratio: 1.34:1 — fails WCAG AA normal text */
}