Hey I am pleased to share the technologies and code libraries used in building our applications.
You have a color and want to know which text color — black or white — reads best on top of it? Paste any color code (hex / RGB / HSL), a CSS property with a value, or a whole selector block. For each color we compute the best contrasting text color and its WCAG contrast ratio. For example
background-color : #2196f3;
or a selector with multiple color definitions like. Simply copy paste, and you will see the recommended text color plus whether it passes WCAG AA / AAA.
.button {
background-color: #2196f3;
color: white;
}
You can use any color format as follows
rgb(64, 64, 64),
rgba(64, 64, 64, 1)
hsl(0, 0%, 25%)
Type or paste a single color value (hex, rgb, hsl or a named color) and see the contrast colors as squares.
This shows the final parsed list from parseCssTextToColorMap(cssText) with computed contrast.
No colors parsed yet.