Gradient Contrast Checker
Sample 101 evenly spaced positions along an sRGB two-color gradient and report the lowest text contrast at those samples.
Your workspace
Server processingThis tool evaluates text readability by calculating contrast ratios at 101 evenly spaced intervals across a linear gradient defined by two colors.
How to check gradient contrast
- Enter your starting and ending colors in the Base and Second color fields using standard CSS hex format.
- Specify the text color you intend to place over this gradient background.
- Review the minimum sampled contrast ratio to determine if your text maintains sufficient legibility across the entire transition.
Evaluating contrast across a gradient
Because a gradient changes color continuously, text placed on top of it may be readable in some areas but illegible in others. This tool samples the gradient at 101 discrete points, from 0% to 100% of the transition, calculating the WCAG contrast ratio at every step. By identifying the minimum ratio found among these samples, you can determine the 'worst-case' readability for your design.
Interpreting the results
The output provides the lowest contrast ratio encountered across the sampled points. If this minimum value falls below standard accessibility thresholds (such as 4.5:1 for normal text), the text may be difficult to read at specific positions along the gradient. The tool also indicates the exact percentage position where this lowest contrast occurs, helping you identify where the design might need adjustment.
Gradient contrast check
Base: #234e37, Second: #e8efdd, Text: #ffffff
The tool samples 101 points between the dark green and light green, calculating the contrast against white text at each point and reporting the lowest ratio found.
Gradient contrast questions
Does this tool account for text size?
No, the tool calculates the raw contrast ratio based on color luminance. You should compare the result against the appropriate WCAG threshold for your specific text size (e.g., 4.5:1 for normal text or 3:1 for large text).
What happens if the gradient is too complex?
The tool assumes a simple linear interpolation between two sRGB colors. It does not account for complex multi-stop gradients or non-linear color blending.
Continue your workflow
Color Blindness Simulator
Apply approximate protanopia, deuteranopia or tritanopia RGB matrices to an uploaded image; simulations do not diagnose vision.
Color Inverter
Invert an opaque HEX color by subtracting RGB channels from 255.
Color Name Finder
Find the closest RGB match among the built-in CSS named colors; the chosen name is an approximation.
Color Palette Generator
Generate related HSL hues from a base color using complementary, analogous or triadic spacing.