CSS Houndstooth Background

A houndstooth pattern in pure CSS: the classic broken check with pointed teeth, from one conic and one linear gradient. Set the check size and colors live.

#167364
#6da89e
32px
.bg-houndstooth {
  --bg: #167364;
  --fg: #6da89e;
  --size: 32px;
  background-color: var(--bg);
  background-image:
    conic-gradient(var(--bg) 0 90deg, transparent 0 180deg, var(--fg) 0 270deg, transparent 0),
    linear-gradient(315deg, var(--bg) 12.5%, var(--fg) calc(12.5% + 1px) 25%, var(--bg) calc(25% + 1px) 37.5%, var(--fg) calc(37.5% + 1px) 62.5%, var(--bg) calc(62.5% + 1px) 75%, var(--fg) calc(75% + 1px) 87.5%, var(--bg) calc(87.5% + 1px));
  background-size: calc(var(--size) * 2) calc(var(--size) * 2);
}
<div class="
  [--bg:#167364]
  [--fg:#6da89e]
  [--size:32px]
  [background-color:var(--bg)]
  [background-image:conic-gradient(var(--bg)_0_90deg,_transparent_0_180deg,_var(--fg)_0_270deg,_transparent_0),_linear-gradient(315deg,_var(--bg)_12.5%,_var(--fg)_calc(12.5%_+_1px)_25%,_var(--bg)_calc(25%_+_1px)_37.5%,_var(--fg)_calc(37.5%_+_1px)_62.5%,_var(--bg)_calc(62.5%_+_1px)_75%,_var(--fg)_calc(75%_+_1px)_87.5%,_var(--bg)_calc(87.5%_+_1px))]
  [background-size:calc(var(--size)_*_2)_calc(var(--size)_*_2)]
"></div>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Houndstooth — CSS background</title>
  <style>
    html, body { height: 100%; margin: 0; }
    .bg-houndstooth {
      --bg: #167364;
      --fg: #6da89e;
      --size: 32px;
      background-color: var(--bg);
      background-image:
        conic-gradient(var(--bg) 0 90deg, transparent 0 180deg, var(--fg) 0 270deg, transparent 0),
        linear-gradient(315deg, var(--bg) 12.5%, var(--fg) calc(12.5% + 1px) 25%, var(--bg) calc(25% + 1px) 37.5%, var(--fg) calc(37.5% + 1px) 62.5%, var(--bg) calc(62.5% + 1px) 75%, var(--fg) calc(75% + 1px) 87.5%, var(--bg) calc(87.5% + 1px));
      background-size: calc(var(--size) * 2) calc(var(--size) * 2);
    }
  </style>
</head>
<body class="bg-houndstooth"></body>
</html>

Save the pattern as an image, with your current colors and settings.

Houndstooth in other colors

Click a color to try it in the preview above, then copy the code.

Browse by color: Red · Orange · Yellow · Green · Teal · Blue · Purple · Pink

How the houndstooth pattern works

Houndstooth is a woven check, and this CSS houndstooth pattern follows the weave. The tile is two checks wide and two tall. One check is solid --bg, the opposite one is solid --fg, and the two mixed checks are filled with diagonal stripes, which is what a 2/2 twill does where a dark thread crosses a light one.

The top layer is a conic-gradient() that paints the two solid checks and leaves the mixed ones transparent. Under it, one linear-gradient(315deg, …) draws the stripes. In real houndstooth the stripes in the two mixed checks are opposite: dark where the other is light. Each mixed check sits on a different stretch of this one gradient, so its seven color stops give each check its own stripe phase. Where the stripes meet the solid checks, they form the pointed teeth.

Each stop has a 1px soft edge so the diagonals look smooth. --size sets one check. Use it for fashion and tailoring brands, autumn themes and vintage designs.