About these colours
How many times have you started a project and wondered what colour a social media site uses? This page lists the main brand colours of popular social networks and websites, in both HEX and RGB format, ready to copy into your CSS.
Brands refresh their colours from time to time. Facebook, LinkedIn, Pinterest and Instagram have all changed theirs since this page was first published, so we've updated every entry, and noted the old colours where they changed.
Good to know: each swatch shows "Aa" in white or dark text, whichever is easier to read on that colour. It's a quick guide to which text colour to use if you put words on a brand-coloured button.
The RGB values use the modern space-separated format, such as rgb(8 102 255). If you prefer the older comma format, rgb(8, 102, 255) works exactly the same.
Social networks
| Brand | Swatch | HEX | RGB |
|---|---|---|---|
| Aa | #0866FF | rgb(8 102 255) | |
| X (formerly Twitter) | Aa | #000000 | rgb(0 0 0) |
| Instagram Single-colour version; the full logo uses a gradient | Aa | #E4405F | rgb(228 64 95) |
| Threads | Aa | #000000 | rgb(0 0 0) |
| Aa | #0A66C2 | rgb(10 102 194) | |
| Aa | #E60023 | rgb(230 0 35) | |
| TikTok The logo adds cyan and pinkish-red accents | Aa | #000000 | rgb(0 0 0) |
| Bluesky | Aa | #0560FF | rgb(5 96 255) |
| Mastodon | Aa | #6364FF | rgb(99 100 255) |
| Aa | #FF4500 | rgb(255 69 0) | |
| Tumblr | Aa | #35465C | rgb(53 70 92) |
| Snapchat | Aa | #FFFC00 | rgb(255 252 0) |
Video and music
| Brand | Swatch | HEX | RGB |
|---|---|---|---|
| YouTube | Aa | #FF0000 | rgb(255 0 0) |
| Vimeo | Aa | #1AB7EA | rgb(26 183 234) |
| Twitch | Aa | #9146FF | rgb(145 70 255) |
| Spotify Previously #1DB954 | Aa | #1ED760 | rgb(30 215 96) |
Creative, developer and publishing sites
| Brand | Swatch | HEX | RGB |
|---|---|---|---|
| GitHub | Aa | #181717 | rgb(24 23 23) |
| Dribbble | Aa | #EA4C89 | rgb(234 76 137) |
| Behance | Aa | #1769FF | rgb(23 105 255) |
| Flickr Flickr also uses a blue alongside the pink | Aa | #FF0084 | rgb(255 0 132) |
| WordPress | Aa | #21759B | rgb(33 117 155) |
| Medium | Aa | #000000 | rgb(0 0 0) |
| Blogger | Aa | #FF5722 | rgb(255 87 34) |
| Quora | Aa | #B92B27 | rgb(185 43 39) |
| Yahoo Previously #7B0099 | Aa | #6001D2 | rgb(96 1 210) |
| RSS No official colour; orange is traditional | Aa | #FFA500 | rgb(255 165 0) |
Messaging and community
| Brand | Swatch | HEX | RGB |
|---|---|---|---|
| Aa | #25D366 | rgb(37 211 102) | |
| Telegram | Aa | #0088CC | rgb(0 136 204) |
| Discord | Aa | #5865F2 | rgb(88 101 242) |
Know of a site that should be on this list? Please let us know through our contact form.
Changed and closed networks
If you're updating an older website, you may still have some of these colours in your stylesheets:
| Brand | Old colour | What changed |
|---|---|---|
#3b5998 | Now a brighter blue, #0866FF | |
#00aced | Renamed X in 2023, with a black brand colour | |
#007bb6 | Now #0A66C2 | |
#cb2027 | Now #E60023 | |
#517fa4 | The old blue was replaced by the colourful gradient logo in 2016 | |
| YouTube | #bb0000 | Now a brighter red, #FF0000 |
| Google+ | #dd4b39 | Closed in 2019 |
| Vine | #00bf8f | Closed in 2017 |
| StumbleUpon | #eb4823 | Closed in 2018 |
| Forrst | #5b9A68 | Closed |
| Foursquare | #0072b1 | The City Guide app closed in 2024; the Swarm app continues |
Tip: links to closed networks are worth removing from your site. They no longer lead anywhere useful, and they can make a website look out of date.
Using brand colours in your CSS
Store them as custom properties
Rather than repeating HEX codes throughout your stylesheet, store each colour once in a custom property (a CSS variable). If a brand changes its colour again, you only need to update one line:
:root {
--facebook: #0866FF;
--x: #000000;
--instagram: #E4405F;
--threads: #000000;
--linkedin: #0A66C2;
--pinterest: #E60023;
--tiktok: #000000;
--bluesky: #0560FF;
--mastodon: #6364FF;
--reddit: #FF4500;
--tumblr: #35465C;
--snapchat: #FFFC00;
--youtube: #FF0000;
--vimeo: #1AB7EA;
--twitch: #9146FF;
--spotify: #1ED760;
--github: #181717;
--dribbble: #EA4C89;
--behance: #1769FF;
--flickr: #FF0084;
--wordpress: #21759B;
--medium: #000000;
--blogger: #FF5722;
--quora: #B92B27;
--yahoo: #6001D2;
--rss: #FFA500;
--whatsapp: #25D366;
--telegram: #0088CC;
--discord: #5865F2;
}
.share-facebook {
background-color: var(--facebook);
color: #ffffff;
}
Check contrast before adding text
Some brand colours are bright, and white text on them can be hard to read. Snapchat's yellow, Spotify's green and WhatsApp's green, for example, all need dark text. Accessibility guidelines recommend a contrast ratio of at least 4.5 to 1 for normal text. The "Aa" in each swatch above shows which text colour works better.
Follow each brand's guidelines
Brand colours and logos are trademarks. Most networks publish brand guidelines that explain how their logo and colours may be used, such as which versions of the logo are allowed and how much space to leave around it. They're also the best place to check for the latest official colours, since brands can change them at any time.
Wrapping up
Bookmark this page for the next time you need a brand colour. Copy the HEX or RGB value you need, store it in a custom property, and check the contrast before adding text, and your social buttons will look right and stay readable.