The text-emphasis-color property sets the color of emphasis marks. It is a longhand of the text-emphasis shorthand and works with text-emphasis-style.
It is inherited. The initial value is currentColor, so marks match the text color until you override them. Color alone draws nothing until a style exists.
Note Style first, then color
Set text-emphasis-style (or the shorthand) before expecting color changes. Without marks, this property has no visible effect.
Syntax
CSS Syntax
syntax.css
text-emphasis-color:<color> | initial | inherit;
Any valid CSS color works: keywords, hex, rgb(), hsl(), currentColor, transparent, or var(--token).
Keep a style. Filled circles make the color easy to see.
Use rgb(). Modern syntax allows space-separated channels and slash alpha.
Soft emphasis. Partial opacity tones the marks down without changing the text.
Theme tip. Swap in var(--accent) the same way for design tokens.
Edge Cases & Pitfalls
If the color seems ignored, one of these is usually why.
style
No style means no color
Without text-emphasis-style (or the shorthand), there are no marks to paint.
shorthand
Shorthand can reset color
A later text-emphasis rule can override a previous text-emphasis-color. Watch cascade order.
current
currentColor follows color
Changing the text color also changes marks when color is currentColor.
transparent
Transparent hides marks
The style is still there, but invisible. Prefer text-emphasis-style: none when you want marks off.
vs text
Does not recolor letters
This property paints marks only. Letter color stays controlled by color.
Compatibility
Browser Support
text-emphasis-color is a browser text-decoration property. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available
text-emphasis-color
Interoperable across modern browsers since about March 2022. Internet Explorer does not support this property.
94%Modern browsers
Google Chrome99+
Full
Mozilla Firefox46+
Full
Apple Safari7+
Full
Microsoft Edge99+
Full
Opera85+
Full
Samsung Internet18+
Full
Internet ExplorerNo
None
text-emphasis-colorWidely supported
Bottom line: Safe for modern sites. Support tracks the text-emphasis family. IE has no support.
Remember
Key Takeaways
Role: color emphasis marks only—not the letters themselves.
Initial value:currentColor. Inherited. Needs a style to be visible.
Any <color>: keywords, hex, rgb/hsl, transparent, or variables.
Shorthand twin:text-emphasis can set style and color in one rule.
One line:text-emphasis-color paints emphasis marks once a style is already set.
Frequently Asked Questions
It sets the color of emphasis marks drawn on characters. Marks only appear when a style is set with text-emphasis-style or the text-emphasis shorthand.
The initial value is currentColor, so marks match the element text color unless you override them.
Yes. Color alone draws nothing. Set a style such as filled circle, then color the marks.
Yes. A parent color can affect child emphasis marks unless a child overrides it or resets the shorthand.
Yes. text-emphasis: filled red sets style and color together. Use the longhand when color needs its own cascade rule.
It is Baseline Widely available (interoperable since about March 2022) in modern browsers. Internet Explorer does not support it. It is a browser rendering property, not a Node.js feature.