Fork me on GitHub

Find me the good constrasts, for web accessibility, between these two colors:

Foreground Color : invalid color For each color (red, green and blue), enter a number between 0 et 255. The color should be between #000000 and #FFFFFF
Background Color : invalid color For each color (red, green and blue), enter a number between 0 et 255. The color should be between #000000 and #FFFFFF

In the international reglementation etablished by the WCAG, the success criteria 1.4.3 requires a minimum contrast ratio of 4.5:1 (and 3:1 for enlarged text).

This minimum contrast ratio is also required by the French regulation, established by the RGAA 3.0 2016, in the criteria 3.3 et 3.4.

Component to edit :
Gimme :

Old contrast

Invalid contrast
Foreground Background Sample Ratio Distance
  • hsl(0, 0%, 15%)
  • rgb(40, 40, 40)
  • #282828
  • hsl(5, 78%, 57%)
  • rgb(231, 76, 60)
  • #E74C3C

Title big size with words in bold

Here is some text sample with some words in bold to illustrate the contrast.

3.85909

New contrast : 2 results (1,009,899 colors tested)

Valid contrasts
Foreground Background Sample Ratio Distance
  • hsl(1, 72%, 12%)
  • rgb(57, 10, 9)
  • #390A09
  • hsl(5, 78%, 57%)
  • rgb(231, 76, 60)
  • #E74C3C

Title big size with words in bold

Here is some text sample with some words in bold to illustrate the contrast.

4.50067 37.3
  • hsl(2, 90%, 12%)
  • rgb(61, 5, 3)
  • #3D0503
  • hsl(5, 78%, 57%)
  • rgb(231, 76, 60)
  • #E74C3C

Title big size with words in bold

Here is some text sample with some words in bold to illustrate the contrast.

4.50026 43.84
Not satisfied ?