How does this tool work?
Converts sRGB values to relative luminance and calculates the lighter/darker contrast ratio.
Enter text color, background color. Update the result, inspect it, then copy or download the output. Reset restores the example inputs so you can start a new calculation.
Example inputs: Text color: #161a20 · Background color: #ffffff.