A yellow site with 14 colors in use, no framework found, 72% of its text at WCAG AA

The colors of nationalgeographic.com

The main color of nationalgeographic.com is #ffcc00, a yellow, and its home page uses 14 colors, 5 of them more than a gray, in 3 hue families. Recolor (recolor.page) read the page on October 8, 2026 for the colors of the web study: 91 distinct color values in 1189.4 KB of CSS, half of its text at 21:1 or better against what it sits on.

Measured

#ffcc00Gold
#0066ccRoyal Blue
#cd201fCrimson
#000000Black
#ffffffWhite
From the colors of the web 2026 dataset (dataset.csv, rank 291), measured on October 8, 2026 with scripts off; how it was measured
Measurenationalgeographic.com
Main color#ffcc00, a yellow near gold
Five heaviest colors#ffffff #000000 #ffcc00 #0066cc #555555
Colors in use14, 5 more than a gray; 91 distinct values in the CSS
Hue families3; yellow and blue hold 5% or more of its color
Canvas#ffffff, light
Dark mode in the CSSNo
Notationshex codes 89%, rgb() 7.3%, hsl() 2.9%, named colors 0.7%
Colors through var()25% of its color declarations; 400 variables hold a color
FrameworkNone the study looks for
Text contrastMedian 21:1; 28% of its text under 4.5:1
Page measuredhttps://www.nationalgeographic.com/, 1189.4 KB of CSS

The palette of nationalgeographic.com

Recolor reads a page's colors as its Use site colours button does: each hue family's main color in rank order, then its background and text color, black or white for colored text, then grays. For nationalgeographic.com that is #ffcc00, #0066cc, #cd201f, #000000 and #ffffff. Open nationalgeographic.com in Recolor in its own colors, or try another palette on nationalgeographic.com.

CSS variables

CSS
:root {
  --color-1: #ffcc00;
  --color-2: #0066cc;
  --color-3: #cd201f;
  --color-4: #000000;
  --color-5: #ffffff;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #ffcc00;
  --color-2: #0066cc;
  --color-3: #cd201f;
  --color-4: #000000;
  --color-5: #ffffff;
  --color-primary: #ffcc00;
  --color-secondary: #0066cc;
  --color-accent: #cd201f;
}

Text contrast on nationalgeographic.com

Half of the text on nationalgeographic.com reads at 21:1 or better against what it sits on. 28% of it falls under 4.5:1, the WCAG AA line for body text, and 0.6% under 3:1, the line for large text; judged as AA judges each piece of text, 28% fails. On the average studied site 6% of the text fails. Most of its text, 78%, sits on a dark ground. Black or white text on a color shows how to fix a pair.

How nationalgeographic.com writes its colors

The 2,287 color values in its CSS are written as hex codes (89%), rgb() (7.3%), hsl() (2.9%) and named colors (0.7%). Through var(), 25% of its color declarations take their color from a CSS variable; 400 variables hold one.

No framework the study knows by its variables shows in its CSS, neither Tailwind CSS and Bootstrap nor a site builder's. No dark mode shows in its CSS; 41% of the studied sites declare one.

Sites with a similar main color

The yellow sites nearest nationalgeographic.com in the lightness of their main color. The yellow page lists all 31; colors that go with yellow counts the hues beside it.

Common questions

Is the main color of nationalgeographic.com blue?

No. Its main color is #ffcc00, a yellow near the CSS color gold; blue leads on 49% of the 1,000 sites the study read.

Does nationalgeographic.com use Tailwind CSS?

No. Its CSS carries none of Tailwind CSS's variables, nor those of another framework the study looks for.

Is nationalgeographic.com a dark site?

No. The color behind its home page is #ffffff, a light canvas.

Does the text on nationalgeographic.com pass WCAG AA?

No. 28% of its text fails AA, though half of it reads at 21:1 or better.

Can I see nationalgeographic.com in another palette?

Yes. Load nationalgeographic.com in Recolor and press Space: the page repaints in a new palette, live. Its own palette opens it close to how it looks.

Sources