Check Contrast in a Logo Color Palette
How to use a color contrast checker on a vector logo palette: what the ratio measures, which thresholds apply, how to sample accurate colors and where the method falls short.
Contents
The short answer
To check contrast in a logo color palette, take the exact color values from the logo's vector artwork. Then run each foreground and background pairing that will actually appear through a color contrast checker. The checker returns a ratio from 1:1 (no difference) to 21:1 (black on white). Compare that ratio against the accessibility thresholds that apply to the element in question. The test only tells you something useful if it uses true palette values and real color pairings, not colors sampled from a blurry preview image.
Two different things are being checked. The first is contrast between colors inside the mark, such as an icon against its container shape or a wordmark against a badge. The second is contrast between the whole logo and the backgrounds it will be placed on. A palette can pass one test and fail the other, so each needs its own check.
What a contrast checker actually measures
Most contrast checkers use the method in the Web Content Accessibility Guidelines (WCAG). Each color's sRGB value is converted to relative luminance, a measure of perceived lightness. The two luminance values are then compared with this formula:
contrast ratio = (L1 + 0.05) / (L2 + 0.05)
L1 = relative luminance of the lighter color
L2 = relative luminance of the darker color
The ratio depends only on luminance. Two colors can look very different in hue, such as a saturated red and a mid green, and still score close to 1:1. This is the main reason to test a palette with a checker rather than judging by eye. Colors that seem distinct can merge for viewers with color vision deficiencies, or when the logo appears in grayscale.
Which thresholds apply to a logo
WCAG sets minimum ratios for content, but logos are treated differently. Text that is part of a logo or brand name is exempt from the text contrast minimum. Meeting a threshold is therefore a design and usability decision for the mark itself, not a compliance requirement. The standard figures are still useful benchmarks, and the exemption does not cover text or interface elements placed next to the logo.
| Element | WCAG reference ratio | How it relates to a logo |
| Normal-size text | 4.5:1 (AA), 7:1 (AAA) | Logotype text is exempt. A reasonable target for taglines or small wordmark text that must stay legible. |
| Large text | 3:1 (AA), 4.5:1 (AAA) | A useful benchmark for bold or large wordmarks. |
| Graphical objects needed to understand content | 3:1 (AA) | A practical benchmark for icon shapes that must stand apart from their background, especially when the logo also works as a link or button. |
| Logo or brand name text | No minimum | Exempt under WCAG. Contrast here is a brand and legibility choice. |
Getting accurate color values from vector artwork
A contrast check is only as reliable as the color values entered into it. With a logo, those values can come from three different kinds of source:
- Vector artwork: fills and strokes defined as color values in an editable file. Read the values directly from the swatch or fill settings. This is the most reliable source.
- Embedded raster images: bitmap images placed inside a vector file. Their pixels carry color information without a single defined value, so a sampled color may vary across the image.
- Raster previews: PNG, JPG or thumbnail renders of the logo. Compression and anti-aliased edges can shift colors, so an eyedropper reading may not match the intended palette value.
A file's extension alone does not confirm which of these it contains. A file saved in a vector format can hold only an embedded bitmap. Before trusting the colors you sample, open the file and confirm that the shapes are editable paths with defined fills.
Palette situations that need extra care
- Gradients: contrast changes along the gradient. Check the point where the gradient comes closest to the color it sits against, not the average.
- Print and spot colors: contrast checkers calculate in screen sRGB. CMYK and spot colors such as Pantone have to be converted first, and different conversions can give different values. The result is an estimate of on-screen contrast, not a measurement of printed output.
- Transparency and overlays: a semi-transparent shape produces a blended color that depends on what is underneath. Check the resulting color, not the swatch value before blending.
- Thin strokes and fine detail: the ratio does not account for size. A pairing that passes can still disappear in a hairline stroke or at favicon size, so view the logo at its smallest intended size as well.
- Logo variations: full-color, reversed, one-color and monochrome versions each create different pairings. Test every version you plan to deliver.
A practical checking sequence
- 1. List every palette color and record its exact value from the vector source.
- 2. Map the real pairings: elements inside the mark, and the logo against each intended background (light, dark, brand color, photography).
- 3. Run each pairing through a contrast checker and record the ratio.
- 4. Compare the results against the reference thresholds above, keeping the logotype exemption in mind.
- 5. For low-scoring pairings, adjust lightness rather than hue, since luminance determines the ratio. Alternatively, define a separate approved variation for that background.
- 6. Recheck any gradients, transparencies and small-size uses individually.
- 7. Record the approved pairings in the logo's delivery notes so future users apply the correct version on each background.
Checking versus changing a logo you do not own
Running a contrast check on any logo is a harmless analysis. Changing its colors to fix a poor result is a separate matter. Permission to download a logo file does not grant permission to modify the artwork, change brand colors or alter the trademark, and fonts in the wordmark may carry their own license terms. If a third-party logo fails on your background, first look for an official alternate version, such as a reversed or one-color logo, before considering any edit.
What this guidance does not cover
No evidence was supplied about a specific logo, palette or contrast-checking tool. This article therefore does not compare named checkers or report ratios for any real brand. The thresholds and formula above come from the published WCAG method. Recommendations about when to apply them to logo artwork are editorial judgments, not requirements. Projects with formal accessibility obligations should confirm the applicable standard and version with whoever is responsible for compliance.