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, 90%, 44%)
  • rgb(217, 11, 11)
  • #D90B0B
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

5.24601

New contrast : 10 results (985,320 colors tested)

Valid contrasts
Foreground Background Sample Ratio Distance
  • hsl(2, 98%, 35%)
  • rgb(181, 8, 1)
  • #B50801
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00018 36.26
  • hsl(3, 95%, 36%)
  • rgb(180, 13, 4)
  • #B40D04
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00004 37.08
  • hsl(3, 92%, 36%)
  • rgb(179, 17, 7)
  • #B31107
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00003 37.96
  • hsl(1, 84%, 37%)
  • rgb(178, 20, 15)
  • #B2140F
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.0001 38.83
  • hsl(4, 86%, 37%)
  • rgb(176, 26, 13)
  • #B01A0D
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00096 40.32
  • hsl(2, 78%, 38%)
  • rgb(175, 28, 21)
  • #AF1C15
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00065 40.85
  • hsl(2, 72%, 39%)
  • rgb(172, 34, 28)
  • #AC221C
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00068 41.99
  • hsl(3, 72%, 38%)
  • rgb(171, 36, 27)
  • #AB241B
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00055 42.66
  • hsl(2, 64%, 39%)
  • rgb(167, 42, 36)
  • #A72A24
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00056 43.01
  • hsl(2, 60%, 40%)
  • rgb(164, 46, 40)
  • #A42E28
  • hsl(0, 0%, 100%)
  • rgb(255, 255, 255)
  • #FFFFFF

Title big size with words in bold

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

7.00014 43.38
Not satisfied ?