CSS Portal

CSS text-emphasis-color Property

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The text-emphasis-color property specifies the color used to paint emphasis marks — the small dots, circles, or other glyphs that can be added to text to indicate emphasis (commonly used in East Asian typography). It controls only the visual color of those marks and does not affect their shape, placement, or whether they are shown; the shape and whether the marks are filled or open is controlled by text-emphasis-style, while the shorthand that sets both style and color together is text-emphasis. Because it targets only the emphasis markers, changing text-emphasis-color leaves the underlying text glyph shapes and layout rules untouched.

By default, emphasis marks inherit the visual presence of the element’s foreground; when no explicit emphasis color is provided, they will typically render using the element’s color. Specifying text-emphasis-color overrides that and lets you create contrast or subtlety between text and marks (for example, a softer marker color for unobtrusive emphasis, or a bright marker for strong emphasis). The property participates in normal cascade and inheritance: it can be set on block containers and passed down, or applied to inline spans to highlight only particular words or phrases.

Practical considerations include accessibility and readability: because emphasis marks are small, their color must maintain sufficient contrast with the text background for them to be perceptible — think of them as part of typographic semantics that should remain readable in high-contrast and low-vision scenarios. Emphasis mark color can be animated or transitioned like other color properties, letting you produce subtle emphasis effects, but keep in mind performance on complex text flows. In vertical writing modes the placement of emphasis marks changes to follow the line direction, so combine text-emphasis-color with appropriate layout settings such as writing-mode as needed. Finally, remember that emphasis marks are distinct from decorations like underlines; if you need to color text decoration lines use text-decoration-color rather than the emphasis-color property.

Definition

Initial value
currentColor
Applies to
All elements
Inherited
Yes
Computed value
As specified
Animatable
Yes
JavaScript syntax
object.style.textEmphasisColor

Interactive Demo

The rusty swing set creaked.

Syntax

text-emphasis-color: <color>

Values

  • <color>Specify the foreground color of the emphasis marks.

Example

<div class="example">
<h2>text-emphasis-color examples</h2>
<p class="emphasis red">This is emphasized text (red).</p>
<p class="emphasis blue">This is emphasized text (blue).</p>
<p class="emphasis green">This is emphasized text (green).</p>
</div>
.example {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 20px;
    line-height: 1.8;
}

.emphasis {
    /* Emphasis mark shape and position */
    text-emphasis-style: filled dot;
    -webkit-text-emphasis-style: filled dot;
    text-emphasis-position: over right;
    -webkit-text-emphasis-position: over right;

    /* Default emphasis color (can be overridden per element) */
    text-emphasis-color: currentColor;
    -webkit-text-emphasis-color: currentColor;
}

.emphasis.red {
    color: #c62828;
    text-emphasis-color: #c62828;
    -webkit-text-emphasis-color: #c62828;
}

.emphasis.blue {
    color: #1565c0;
    text-emphasis-color: #1565c0;
    -webkit-text-emphasis-color: #1565c0;
}

.emphasis.green {
    color: #2e7d32;
    text-emphasis-color: #2e7d32;
    -webkit-text-emphasis-color: #2e7d32;
}

Browser Support

The following information will show you the current browser support for the CSS text-emphasis-color property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 1st January 2026

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!