Guide · 3 min read

How to pick colors for your X header and profile photo

Short answer: Choose one base color for the header, one accent color you repeat in the profile photo, and one text color with strong contrast against the base. Then check the pair in both light and dark mode, since X's background changes around them. Two or three colors are enough; more usually looks busy at phone size.

Key takeaways

  • Limit yourself to a base, an accent and a text color.
  • Repeat one header color in the profile photo to tie the two images together.
  • Text needs strong contrast against the part of the image right behind it.
  • Mid-tone and dark headers sit comfortably in both light and dark mode.

A profile looks finished when the header and profile photo feel like they belong together. Most of that comes down to color. You don't need design training to get it right; you need a small palette, one contrast check and a look at the result on a phone.

How many colors should an X header use?

Two or three: a base color, an accent, and a color for any text.

At phone size, the header is a strip a few centimetres tall. Five colors fighting for attention turn into noise. A simple palette is easier to read and easier to repeat in your profile photo.

Role What it does Example
Base Covers most of the header Deep navy
Accent Small shapes, highlights, one word Coral
Text Headline and any second line Off-white

Every design in our header gallery is built this way, with two main colors listed on its page. They make good starting points if you'd rather adapt a palette than invent one.

How do I make the header and profile photo match?

Repeat one header color in the profile photo, usually as its background or a strong detail.

The profile photo sits on top of the header's lower left corner, so the two are always seen together. Ways to connect them:

  1. Use the header's accent color as the background of a logo or illustrated avatar.
  2. For a photo of yourself, pick a header base color that appears in the photo: the wall behind you, a jacket, your hair.
  3. Cut the avatar from the same artwork as the header. Each design in our gallery comes with a matching 400 x 400 avatar for this reason.

Our guide to profile picture size covers the crop and resolution side.

How do I keep text readable?

Choose a text color with strong contrast against the part of the header directly behind it, and check it with a contrast tool.

Web accessibility guidance (WCAG) asks for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text. Header text is drawn small on phones, so treat it as normal text and aim for 4.5 to 1. The free WebAIM contrast checker takes two color codes and gives you the ratio.

The common trap is checking against the average color of the header rather than the spot behind the words. A gradient that goes from light to dark can give white text great contrast on one side and none on the other. Fixes:

  • Place text over the calmest, most even part of the image.
  • Add a solid or semi-transparent band behind the text. The header maker has a "color band behind text" option.
  • Add a soft shadow under light text.

How do light and dark mode change things?

X's background around your header changes between white and near-black, so test the header against both.

X lets each person choose a light, dim or dark background in display settings. Your header is the same image in all three, but its surroundings change:

  • A very bright, mostly white header can look like a glare panel in dark mode.
  • A very dark header with dark edges can blend into the dark background and lose its shape.
  • Mid-tone and saturated colors usually sit well in both.

To test, switch your own display setting between light and dark and look at your profile each time. Designs such as Midnight Grid and Winter Dark Blue were made to sit comfortably in dark mode, while Spa Pastel is a softer option that still holds its edges on white.

Which colors suit which kind of account?

Pick colors that fit what your account is about; there's no single right answer, but some pairings are familiar to readers.

  • Advice, finance, health information: blues, greens and neutrals feel steady.
  • Food, community, local business: warm reds, oranges and yellows feel inviting.
  • Gaming, music, nightlife: dark bases with bright neon accents.
  • Design and art: one bold color against a neutral, or a playful pattern.

These are conventions, not rules. A finance account in coral will stand out precisely because it's unexpected, as long as the text stays readable.

What's a quick way to check the result?

Look at your profile on a phone in light and dark mode, at arm's length, and ask whether the text is readable and the two images feel related.

  1. Upload the header and profile photo (steps here).
  2. Open your profile on a phone.
  3. Switch between light and dark display settings.
  4. Check that every word is readable and the avatar doesn't vanish into the header.

If something fails, it's usually the text contrast or one color too many. Adjust that one thing and check again.

Questions

Should my header match my brand colors?

If you have brand colors, yes, use them as the base and accent. If you don't, pick colors that suit your topic: calm blues and greens for advice and finance, warm colors for food and community, high contrast for gaming and music.

What contrast ratio should header text have?

Web accessibility guidance asks for at least 4.5 to 1 for normal text and 3 to 1 for large text. Header text is shown small on phones, so aiming for 4.5 to 1 or higher is safer.

Does X let me change my profile's theme color?

X lets you change the display accent color and background (light, dim or dark) for your own view in display settings. Visitors see their own settings, so you can't rely on them seeing your color choice.

What if my profile photo is a photo of me?

Pick a header color that appears in the photo, such as the background or your clothing, and keep the header calm so your face stays the focus.

Sources