G18: Ensuring that a contrast ratio of at least 4.5:1 exists between text (and images of text) and background behind the text

HTML Snippet Code
Scenario 1: Color contrast passed for the elements


<label>Enter Email id </label> <input type="text" aria-label="enter email id"/> <input type="submit" value="Go!" style="text-align:left;background-color:#6995BF" /></br> <label>Enter Password</label> <input type="text" aria-label="enter password"/> <button type="button" style="text-align:left;background-color:rgb(255,0,255);"> Enter ! </button> </br> <button style="text-align:left;background-color:rgba(0,0,255,0.3);">Submit</button> <button style="text-align:left;background-color: hsla(120, 100%, 75%, 0.3);">Cancel</button>