Contrast checker
Compare two solid HEX colors using WCAG contrast ratios. Check AA and AAA normal/large text thresholds with examples and clear accessibility limits.
Color & designCreate linear or radial CSS gradients with two to four color stops, custom positions and opacity. Preview the result and copy or download CSS.
Ready when you are.
Using the default settings. You can try the same input in the workspace.
Start: #6d4aff; end: #f2a48e; angle: 135°
background: linear-gradient(135deg, #6D4AFF 0%, #F2A48E 100%);
Choose linear or radial, select two to four colors and set stop positions in ascending order. Opacity controls transparency for each stop. Generate, inspect the preview and copy the CSS declaration.
Creates two to four ordered color stops with positions and opacity, in linear or radial gradients. No conic gradients or interpolation-space controls. Preview appearance depends on the element size.
Copy the background declaration into a CSS rule. Linear gradients use an angle; radial gradients use a circle. Stops can have positions and opacity. Check text contrast across the whole rendered gradient.
No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.
Yes. No account, subscription or usage credits are required.
Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.
0deg points upward: the start color is at the bottom and the end color at the top. 90deg points right, 180deg points down and 270deg points left; 360deg has the same direction as 0deg. The default 135deg runs from the start color toward the lower right. Fractional angles such as 22.5 are supported, but this interface rejects angles below 0 or above 360 even though CSS can express other angle values.
Two stops default to 0% and 100%. Add a middle and an extra stop for three or four colors; positions must remain in ascending order. Lower opacity makes that stop transparent, so the page behind the gradient affects its appearance. Radial output uses a circle; linear output uses the selected angle.
Paste the returned declaration inside a selector, for example .banner { background: linear-gradient(90deg, #000000, #FFFFFF); }. Copy and Download contain the declaration only, not a selector, full stylesheet or HTML element. The background shorthand resets other background properties, including an earlier background image. Use background-image instead when you intentionally need to preserve other separately defined background properties, and test the complete rule.
A gradient is generated for the box where it is used, so a wide banner and a square card need not look like this preview. Check the final layout at narrow and wide sizes. The generator does not guarantee readable overlaid text; use Contrast checker on relevant foreground/background samples across the whole text area, including intermediate colors, or choose a solid text backing. Lorem ipsum can help create a repeatable layout sample, but replace it with real content before publishing.
Build a design check: normalize a HEX color, create a gradient background, then check text contrast. Use repeatable placeholder paragraphs to test the actual layout. Copy values before switching tools; no input is transferred automatically.
Method references: WCAG 2.2 minimum text contrast, enhanced text contrast, non-text contrast, and CSS linear-gradient direction and stops.
Something not right? Report a problem with this tool. Include the steps, but never passwords or private input.
Compare two solid HEX colors using WCAG contrast ratios. Check AA and AAA normal/large text thresholds with examples and clear accessibility limits.
Color & designConvert 3- or 6-digit HEX to RGB and HSL for CSS. Compare exact sRGB channel values with rounded HSL and see a color preview.
Color & designEscape five HTML-special characters or decode named and numeric references. Compare text escaping with sanitization using local examples.
Developer tools