A red site with 16 colors in use, built with Tailwind CSS, 98% of its text at WCAG AA
The colors of harvard.edu
Recolor (recolor.page) read the home page of harvard.edu on October 8, 2026: its main color is #df072e, a red, and it paints 16 colors in 2 hue families out of 103 distinct values in its CSS, half of its text at 15.13:1 or better against what it sits on.
Measured
| Measure | harvard.edu |
|---|---|
| Main color | #df072e, a red near crimson |
| Five heaviest colors | #ffffff #464a4f #292c2f #1e1e1e #e3e5e5 |
| Colors in use | 16, 4 more than a gray; 103 distinct values in the CSS |
| Hue families | 2; red holds 5% or more of its color |
| Canvas | #ffffff, light |
| Dark mode in the CSS | No |
| Notations | hex codes 63%, rgb() 33%, hsl() 3%, named colors 0.6% |
Colors through var() | 90% of its color declarations; 87 variables hold a color |
| Framework | Tailwind CSS, WordPress |
| Text contrast | Median 15.13:1; 1.9% of its text under 4.5:1 |
| Page measured | https://www.harvard.edu/, 949.8 KB of CSS |
The palette of harvard.edu
Taken the way Recolor's Use site colours takes a page's colors, harvard.edu gives the palette #df072e, #0000ff, #0e0e0e, #ffffff and #464a4f: the main color first, then its background and text color, black or white for colored text. The code below holds the palette; open harvard.edu in Recolor in its own colors or try another palette on harvard.edu.
CSS variables
:root {
--color-1: #df072e;
--color-2: #0000ff;
--color-3: #0e0e0e;
--color-4: #ffffff;
--color-5: #464a4f;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #df072e;
--color-2: #0000ff;
--color-3: #0e0e0e;
--color-4: #ffffff;
--color-5: #464a4f;
--color-primary: #df072e;
--color-secondary: #0000ff;
--color-accent: #0e0e0e;
}Text contrast on harvard.edu
The median contrast of the text on harvard.edu is 15.13:1, and 1.9% of it fails WCAG AA: 1.9% is under 4.5:1 and 1.9% under 3:1. On the average studied site 6% of the text fails. 35% of its text sits on a dark ground. To pick a readable ink for a background, see Black or white text on a color.
How harvard.edu writes its colors
The 333 color values in its CSS are written as hex codes (63%), rgb() (33%), hsl() (3%) and named colors (0.6%). Through var(), 90% of its color declarations take their color from a CSS variable; 87 variables hold one.
By its variables, the study told Tailwind CSS's variables (one of 201 Tailwind CSS sites) and WordPress's color presets in its CSS. No dark mode shows in its CSS; 41% of the studied sites declare one.
Sites with a similar main color
The red sites nearest harvard.edu in the lightness of their main color. The red page lists all 164; colors that go with red counts the hues beside it. harvard.edu is also listed under Tailwind CSS sites.
Common questions
Is the main color of harvard.edu blue?
No. Its main color is #df072e, a red near the CSS color crimson; blue leads on 49% of the 1,000 sites the study read.
Does harvard.edu use Tailwind CSS?
Yes. Its CSS carries Tailwind CSS's variables, like 201 of the 1,000 sites the study read.
Is harvard.edu a dark site?
No. The color behind its home page is #ffffff, a light canvas.
Does the text on harvard.edu pass WCAG AA?
No. 1.9% of its text fails AA, though half of it reads at 15.13:1 or better.
Can I see harvard.edu in another palette?
Yes. Load harvard.edu in Recolor and press Space: the page repaints in a new palette, live. Its own palette opens it close to how it looks.
Sources
- The colors of the web 2026, Recolor recolor.page
- How the study was measured recolor.page
- dataset.csv, the row of rank 114 recolor.page
- harvard.edu, the page measured harvard.edu
- Majestic Million, CC BY 3.0, attribution "Majestic" majestic.com