Brand colors

Sourcegraph colors

Sourcegraph's 4 brand colors as structured tokens — every role's hex with copy buttons, contrast pairs measured against the brand's own surface, and CSS / DTCG downloads. Ask your agent for a palette inspired by Sourcegraph via the colors MCP.

Extracted
Version
1
Verified from the live site at sourcegraph.com on 2 September 2026 (version 1).

Role tokens

  • primary#3fb950
  • accent#d14d41
  • surface#ffffff
  • text#111111

Contrast pairs

PairRatioAAAA largeAAAFix
Aaprimary on surface
2.54:1failfailfailAA: primary #2e8539 (4.64:1)
Aaaccent on surface
4.33:1failpassfailAA: accent #cf463a (4.57:1)
Aatext on surface
18.88:1passpasspass
Aatext on primary
7.43:1passpasspass
Aatext on accent
4.36:1failpassfailAA: text #0a0a0a (4.57:1)

Measured against the brand's own surface where it has one; fixes move lightness only so they stay on-hue.

Download

The same tokens as CSS custom properties, a Tailwind theme block, and a W3C DTCG color group — or fetch tokens.json / brand.css for the full brand.

css · sourcegraph-com-colors.css
:root {
  --color-primary: #3fb950;
  --color-accent: #d14d41;
  --color-surface: #ffffff;
  --color-text: #111111;
}
tailwind · tailwind.config.js
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        primary: "#3fb950",
        accent: "#d14d41",
        surface: "#ffffff",
        text: "#111111",
      },
    },
  },
};
dtcg · sourcegraph-com-colors.tokens.json
{
  "$description": "Sourcegraph brand colors",
  "color": {
    "primary": {
      "$type": "color",
      "$value": "#3fb950"
    },
    "accent": {
      "$type": "color",
      "$value": "#d14d41"
    },
    "surface": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "text": {
      "$type": "color",
      "$value": "#111111"
    }
  }
}

Similar brand palettes

Public brands whose primary sits closest on the hue wheel.

mcpConnect your agent — riff on Sourcegraph
live endpoint

Point any MCP client at the shared colors endpoint and your agent gets the same engine as this page — direct_palette, edit_direction, check_palette, check_contrast — read-only, no key. Every direction it proposes comes with a /colors/d/… link: open it, lock what you like, paste the link back, and the agent edits rather than re-rolls.

endpointhttps://mcp.brandsweets.com/colors/mcp
claude mcp add --transport http brandsweets-colors https://mcp.brandsweets.com/colors/mcp
try this prompt

build a palette inspired by Sourcegraph for a dev-tool startup — keep the feel, change the primary, and give me the /palettes/new link

tool url/palettes/new/3fb950-d14d41-ffffff-111111?lock=0

Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.