CSS Overview Hands-On 1
very
inaccessible
low-contrast
text
In this hands-on exercise, we'll learn how to identify and fix low contrast text that can make websites hard to
read.
What You'll Learn
- How to detect contrast issues using DevTools
- How to fix contrast problems using suggested colors
- How to test your site for different vision conditions
Step 1: Finding Contrast Issues
You have three ways to check contrast problems:
Method A: Using CSS Overview
- Press F12 to open DevTools
- Click the "More tools" menu (three dots)
- Select "CSS Overview"
- Click "Capture overview"
- Scroll to the "Colors" section to see contrast issues
Method B: Using Issues Tab
- Press F12 to open DevTools
- Go to Settings (gear icon) > Experimental
- Enable "Show CSS color contrast issues in Issues tab" (filter 'issues')
- Open the Issues tab to see problems
Method C: Using Lighthouse
- Press F12 to open DevTools
- Click the "Lighthouse" tab
- Check "Accessibility"
- Click "Analyze page load"
- Look for contrast issues in the report
Step 2: Fixing Contrast Issues
- Click on any reported contrast issue
- In the Styles panel, click the color box next to the problematic color
- In the Color Picker, look for the "Contrast" section
- Choose one of the suggested accessible colors
Step 3: Testing Different Vision Conditions
- Press F12 to open DevTools
- Press Ctrl+Shift+P (Cmd+Shift+P on Mac)
- Type "Rendering" and select "Show Rendering"
- Find "Emulate vision deficiencies"
- Try different options to test your changes
Try it yourself: Look at the colored text above and use these methods to identify and fix the
contrast issues.
jec.fish - dark mode