The border-right-color property sets the color of an element’s physical right border. You can also set it through the shorthands border-right or border-color.
Not deprecated. Everyday color values are widely available. The newer stripes() / <image-1D> form from Borders Level 4 is limited — stick to normal colors for study and production.
Syntax
CSS Syntax
syntax.css
border-right-color:<color> | initial | inherit;
One color value. Examples: red, #32a1ce, rgb(170 50 220 / 0.6), currentColor, transparent.
Set the text color.color: #7c3aed turns the words purple.
Show a right border.border-right: 4px solid draws the edge.
Link color to text.currentColor copies the computed color value.
Change once, update both. Edit color and the border follows. This is also the property’s initial value.
Edge Cases & Pitfalls
If the right color does not show, one of these is usually why.
style
Color alone draws nothing
border-right-color: red with style none stays invisible. Set border-right-style or use a shorthand that includes a style.
order
A later shorthand can wipe the color
border-right: 4px solid after your color sets color back to currentColor. Put border-right-color after the shorthand, or include the color in the shorthand.
border-right-color is a browser CSS property for the box model. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available
border-right-color
Supported in all modern browsers and Internet Explorer for normalvalues. The newer stripes() image form is not part of these numbers.
100%Color values
Google ChromeAll versions
Full support
Mozilla FirefoxAll versions
Full support
Apple SafariAll versions
Full support
Microsoft EdgeAll versions
Full support
OperaAll versions
Full support
Samsung InternetAll versions
Full support
Internet ExplorerAll versions
Full support
border-right-colorWidely supported
Bottom line: Safe everywhere for named colors, hex, rgb, hsl, currentColor, and transparent. Prefer those over Level 4 stripe colors. It is not a runtime API.
Remember
Key Takeaways
Role: paint the physical right border. Width and style come from other properties.
Initial value:currentColor. Not inherited.
Needs a line: style and width must be visible or the color never shows.
Physical: always the right side. Use border-inline-end-color for logical trailing edges.
One line:border-right-color paints the right edge — after that edge already has a visible width and style.
Frequently Asked Questions
It sets the color of the physical right border only. Width and style come from other properties or from a shorthand such as border-right.
The initial value is currentColor, so the right border uses the element's text color until you set something else.
Color alone is not enough. You also need a visible border-right-style (such as solid) and a non-zero width, or a shorthand that sets those for you.
border-right-color always paints the physical right side. border-inline-end-color follows writing direction, so it can move to the left in RTL layouts.
Yes. Any valid <color> works: named colors, hex, rgb(), hsl(), currentColor, transparent, and more.
It is Baseline and widely available in all modern browsers and Internet Explorer. It is a browser CSS property, not a Node.js feature.