Skip to content

How to Change Font Color in WordPress: 5 Easy Methods

Flat letter A with a color bar beside the title How to Change Font Color in WordPress 5 Ways

Learning how to change font color in WordPress takes under a minute with the block editor. Select a block, open the Color control under Typography, and pick a swatch or a custom hex code.

I tested every method on WordPress 7.1.3 with the Twenty Twenty-Five theme in October 2026. I also checked what WordPress saves for each one, which explains why a color sometimes refuses to change.

This guide covers the block editor, selected words, the whole site, CSS and the Classic Editor. You also get a contrast check and a short list of fixes for colors that do not change.

How to Change Font Color in WordPress: Which Method to Use

How to change font color in WordPress depends on how much text you want to recolor. Use block settings for one block and the Highlight menu for a few words. Use the Site Editor for the whole site, and CSS for anything you name with a class. If you want a new typeface too, see the best WordPress fonts we tested.

The table below sums up the methods I tested.

Four ways to change font color in WordPress
MethodWhere you find itWhat it changes
Block settingsBlock sidebar > Typography > ColorOne block
Highlight menuBlock toolbar > More menuSelected words
Site Editor StylesAppearance > Editor > StylesText across the site
Additional CSSStyles menu > Additional CSSAny element with your class
Classic EditorToolbar > Text colorOne selection in old posts

Start with the smallest scope that does the job, both here and when you change link color in WordPress. A site-wide change is quick, but it also recolors headings and menus, as I show in the Site Editor section below.

Brand colors deserve a second look. If your logo uses one exact blue, enter its hex code once in the Site Editor palette. Then every block can use the same swatch, and a later brand change takes one edit.

If you cannot find the palette, read where the Styles tab in WordPress lives.

Avoid mixing methods on the same text. A block color, a Highlight color and a CSS rule can all apply at once. The winner is not always the one you set last.

Pick one method per piece of text and keep a note of it.

How to Change Text Color in the Block Editor

You change text color in the block editor by selecting a block and using its Color control. The control sits under Typography in the block sidebar. Pick a theme swatch or a custom hex code, and WordPress applies it to the whole block at once.

Color is one setting and family is another, covered in how to change fonts in WordPress.

The settings below come from WordPress 7.1.3. Older versions place the control under a Color panel. The names can differ slightly.

Change the Color of a Whole Block

Open the post, click the paragraph or heading and follow these steps:

  1. Open the sidebar: Click the Settings icon at the top right and choose the Block tab.
  2. Find the Typography panel: Scroll to Typography. The Color row sits just above Font size.
    How to change font color in WordPress using the block Color control
  3. Pick a swatch: Click Color and choose one of the theme swatches. The block changes at once in the editor.
  4. Save the post: Click Update or Save draft and view the page to confirm the color.

WordPress also shows a warning when a color is hard to read. In my test, Twenty Twenty-Five’s Accent 1 is a yellow, #FFEE58. After I picked it, the Color row gained an exclamation icon and the popup said the color has poor contrast against the background.

Theme color palette and contrast warning in the WordPress block editor

Take the warning seriously. Yellow on white measures only 1.19 to 1, which is far below what readers need.

Use a Custom Hex Color

If no theme swatch fits, click the small color picker at the top of the same popup. A hex field opens. Type the code without the hash sign, such as C2410C, and press Enter.

The block updates as you type. You can try several codes quickly. I used C2410C (a dark orange). The warning disappeared because the contrast was high enough.

Custom hex color field for text in the WordPress block editor

Your brand guide may list a color in RGB or HSL instead of hex. The picker has a format switch beside the hex field. You can paste the value in the form you have.

How to Change Text Color in WordPress for Selected Words

You can recolor only a few words by selecting them in the block. The color option for selected words is not on the main toolbar in WordPress 7.1.3. It sits inside the More menu under the name Highlight.

Select the words, click the small arrow in the block toolbar to open More, and choose Highlight.

Highlight option in the WordPress block toolbar More menu

A popup opens with two tabs, Text and Background. The Text tab changes the font color of the selection, and the Background tab adds a marker color behind it.

Text color picker for selected words in WordPress

Tip: Use color on a few words at most. A page where every sentence has a different color looks messy, and it is harder to scan than a plain page.

What WordPress Saves When You Pick a Color

WordPress saves a block color in one of two ways, and the way matters later. A theme swatch saves a class on the block, such as has-accent-1-color. A custom hex code saves an inline style, such as style="color:#c2410c".

I read the saved block markup in the editor for both cases. The class version follows the theme. A theme change can alter it. The inline version stays fixed on the hex value you typed.

For selected words, WordPress wraps them in a mark tag. The tag carries a class such as has-inline-color has-accent-3-color, plus a transparent background so it does not look like a marker pen.

Setting a block color also sets the link color inside that block. The saved markup in my test held the same color for links. A link in that paragraph therefore takes the color of the text around it.

How to Change the Font Color on WordPress for the Whole Site

To change font color for the whole site, open Appearance > Editor > Styles and set the Text element. The color you pick there becomes the default for body text. Headings and the site title inherit it unless they have their own color.

This works with block themes such as Twenty Twenty-Five. In my test the Appearance menu held only Themes, Editor and Fonts. There was no Customize link. The older Customizer method does not apply to this theme.

Follow these steps:

  1. Open the Site Editor: Go to Appearance > Editor and click Styles.
  2. Open Typography: Choose Typography and click Text under Elements.
  3. Set the color: Click Color and pick a swatch or a custom hex code.
    Global text color setting in the WordPress Site Editor
  4. Save the change: Click Review changes and Save. The new color applies to every page that has no color of its own.

I set the Text color to 1E3A8A, a dark navy, and checked the live page. The body, the page heading, the paragraphs and the site title all measured rgb(30, 58, 138). The post date kept its own gray, rgb(104, 104, 104), because the theme sets that color separately.

That result is the main reason to be careful with this method. A text color change is a design change for the whole site. Check the header, the footer and the buttons after you save.

If you use a chat widget on the site, it keeps its own color settings. Our guide to the best WordPress chatbot plugins shows what each one lets you change.

How to Change Font Color With CSS

You can change font color with CSS by writing one rule in the Additional CSS box. Give the text a class name and then set the color property for that class. The rule affects only elements that carry the class. It is the safest way to recolor one part of a page.

In the Site Editor, open Styles, click the three-dot menu and choose Additional CSS.

Additional CSS option in the Site Editor Styles menu

Type your rule in the box. The color property sets the text color, and the MDN color reference lists every value format it accepts.

.promo {
	color: #C2410C;
}

Then add the class to a block. Select the block, open the Advanced section of the block sidebar, and type promo in the Additional CSS classes field.

Additional CSS box with a promo color rule

I tested this on a page with two paragraphs. The paragraph with the promo class measured rgb(194, 65, 12), and the other paragraph kept the global navy from the earlier test. Only the class changed.

Keep your rules small and named. A rule such as p { color: red; } recolors every paragraph on the site, which is almost never what you want.

When two rules fight, the more specific one wins. MDN explains how CSS specificity is calculated, and it is worth a read if your rule seems to do nothing.

Theme files hold more rules than the Additional CSS box. If you want to know which file builds your pages, read our guide on what index.php is in WordPress before you edit anything.

Back up before you edit theme files directly. A WordPress care plan covers backups and updates. A bad edit never costs you the site.

To change link, heading and button colors for the whole site, open the Colors screen in Site Editor Styles. The Elements list holds Link, Captions, Button and Heading. Each one has its own color controls. You can recolor links without touching body text.

Go to Appearance > Editor > Styles and click Colors. Under Elements you will see the four items. Click Link to set the default link color and click Heading to recolor every heading at once.

I checked this screen on WordPress 7.1.3. The same screen shows the Palette, which holds the swatches that blocks use. Editing a palette color updates every block that uses that swatch.

Set link color with care, because links need to look different from the text around them. A link in the same color as the paragraph is hard to spot. Keep a visible contrast between the two, and keep the underline if your theme shows one.

Buttons are a separate case. A button has a text color and a background color, and both need enough contrast together. Test the pair together.

How to Change Text Color in the Classic Editor

The Classic Editor has a Text color button on its second toolbar row. Click the Toolbar Toggle button to show that row, select your text and click the arrow beside the letter A. A color grid opens, with a Custom option for a hex code.

The Classic Editor is a separate plugin now. The Classic Editor plugin restores the old screen for posts and pages, and I installed it for this test.

Text color button in the WordPress Classic Editor toolbar

In my test the second row held Strikethrough, Horizontal line and Text color. It also had Paste as text, Clear formatting, Special character, the indent buttons, Undo and Redo. The Text color button shows the letter A with a colored bar.

Use this method only if you still write in the Classic Editor. The block editor gives you the same result with a live preview.

If you want the new editor on your next post, deactivate the plugin on the Plugins screen. Old posts stay readable, and you can convert each one to blocks when you next edit it.

How to Pick a Readable Font Color

A readable font color has a contrast ratio of at least 4.5 to 1 against its background for normal text. That is the level AA rule in WCAG 2.2. Large text, at 18 point or 14 point bold, needs only 3 to 1.

The WCAG contrast guide states both numbers and defines large text. I computed the ratios for four colors from this guide on a white background.

Contrast ratios of four text colors on a white background

The yellow from the theme palette fails at 1.19 to 1. The orange and the navy both pass, and the near-black Contrast color passes by a wide margin.

A gray such as #767676 is close to the line at 4.54 to 1. Anything lighter, such as #999999 at 2.85 to 1, fails for body text.

Check the colors your visitors see on the live page.

Also check your colors in dark mode if your theme offers it. A navy that reads well on white can disappear on a dark background.

A light gray that suits a dark page can fail on a white one. Open the live page on your phone in daylight, because glare lowers contrast more than a monitor does.

A contrast check is only one part of a web accessibility audit for WordPress that also covers keyboard use and zoom.

Note: WordPress warns about poor contrast in the Color popup. A block on a colored background needs its own check. Test the combination you publish.

Why Your Font Color Is Not Changing

A font color usually does not change for one of three reasons. Another rule is stronger, the page is cached, or the text sits inside an element with its own color. Check those three first. Then look at the block, the theme and any plugin that adds styles.

Work through this list in order:

  • A cached page: Clear your page cache and your browser cache and then reload. A cache plugin can serve the old page for hours.
  • A stronger CSS rule: A theme or plugin rule with higher specificity can override yours. Use your browser’s inspector to see which rule wins.
  • Link color: Links keep their own color in many themes. Set the link color in the Site Editor under Styles, Colors, Elements, Link.
  • A parent block color: If the Group block around the text has its own color, set the color on that block or on the text block itself.
  • A pasted style: Text pasted from Word or a web page can carry inline styles. Select it and use the Clear formatting button, or paste it as plain text.
  • A page builder: Builders keep their own text color controls and often override theme settings. Change the color inside the builder.

Your browser’s inspector shows the winner in seconds. Right-click the text and choose Inspect and then read the Styles pane. Rules with a line through them lost, and the first rule without a line is the one in force.

That pane also shows which file the rule came from. A rule from your theme calls for a more specific selector. A rule from a plugin means you should check that plugin’s settings first.

If none of these helps, switch to a default theme for a minute. When the color works there, your theme has a rule that overrides it.

Conclusion

You now know how to change font color in WordPress at four levels. You can recolor a block, a few words, the whole site or a named CSS class. Start with the smallest level that fits, and check contrast before you save.

Use a theme swatch when you want the color to follow your theme. Use a hex code when the color must stay fixed, such as a brand color.

If a color will not change, clear the cache first and then look for a stronger rule. In most cases, one of those two fixes it.

Frequently Asked Questions (FAQs)

Q1. How do I change text color in WordPress without code?

Select the block, open the Block sidebar and click the Color control under Typography. Pick a swatch or enter a hex code. For a few words, use the Highlight option in the More menu of the block toolbar.

Q2. How do I change the font color of my whole WordPress site?

Go to Appearance > Editor > Styles. Open Typography, click Text and set the Color. In my test, that one change recolored the body text, the heading and the site title together.

Q3. Why is my font color not changing in WordPress?

A cached page, a stronger CSS rule or a color set on a parent block is the usual cause. Clear your cache first. Then inspect the text in your browser to see which rule wins.

Q4. Can I change the color of just one word in WordPress?

Yes. Select the word, open the More menu in the block toolbar and choose Highlight. Pick a color on the Text tab, and WordPress wraps the word in a mark tag with a color class.

Q5. What is the best font color for readability?

Pick a dark color on a light background with a contrast ratio of at least 4.5 to 1. The WCAG guide sets that number for normal text. Near-black on white scores 18.88 to 1 in my test.

Q6. Does changing the font color affect SEO?

Color does not change what a page says. It does not change rankings by itself. Unreadable text still hurts accessibility and frustrates visitors. Keep contrast high so everyone can read the page.

Yash Kapoor
Yash Kapoor

Yash Kapoor is the founder and WordPress expert at DevDiggers, where he builds WordPress and WooCommerce plugins for loyalty programs, point-of-sale systems, digital wallets and affiliate management. He writes about developer tools, site performance and the technical side of running a WordPress store. He draws on years of building and maintaining production plugin codebases.

Leave a Reply

Your email address will not be published. Required fields are marked *