CSS column-rule-color Property

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The column-rule-color property sets the color of the line drawn between columns in a multi-column layout. It is the color longhand of the column-rule shorthand.

The initial value is currentColor. Color alone does not draw a line—you still need a visible column-rule-style (not none) and usually a column-rule-width plus column-gap. The property is not inherited.

Standard-track.

Single-color column-rule-color has been widely available since 2017. Comma-separated lists and repeat() for different gutter colors are newer gap-decoration features with limited support—prefer one color for production.

CSS Syntax

syntax.css
column-rule-color: <color> | initial | inherit;

Use any valid CSS color. Named colors, hex, rgb(), hsl(), currentColor, and transparent all work.

Property Values

ValueDescriptionTry it
<color>Any CSS color for the column dividerTry it
blue / namedKeyword colors such as blue or tealTry it
#hexHex notation, for example #e11d48Try it
rgb()Functional RGB colorTry it
currentColorDefault. Matches the element's text colorTry it
transparentFully transparent rule (style can still be set)Try it
initialResets to currentColorTry it
inheritTakes the parent's column-rule-colorTry it

How to Use column-rule-color

Build a visible rule first, then change only its color with this longhand.

  1. Enable columns with column-count or columns.
  2. Set column-rule-style to something visible (for example solid) and optionally column-rule-width.
  3. Add column-gap so the rule has space.
  4. Set column-rule-color to the color you want—or use the column-rule shorthand if you are setting all three at once.
PieceRequired?Role
column-rule-styleYes (to show a line)Without a visible style, color has nothing to paint
column-rule-widthOptionalDefaults to medium
column-rule-colorOptionalDefaults to currentColor

Live Preview

Style and width stay fixed. Change only the rule color.

Scaffold uses solid 3px style/width. currentColor follows the demo text color (violet).

Result

London. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.

column-rule-color: blue

CSS Examples

Each snippet keeps only what column-rule-color needs. Use Try It Yourself for a live editor.

Example 1 — Named Color

Color a solid column divider with the keyword blue.

CSS
<style>
  p {
    column-count: 3;
    column-gap: 1.5rem;
    column-rule-style: solid;
    column-rule-width: 3px;
    column-rule-color: blue;
  }
</style>

<p>
  London. Michaelmas term lately over…
</p>
Try It Yourself

How It Works

  1. Create columns. column-count: 3 builds a multicol box.
  2. Make the rule visible. column-rule-style: solid and a width draw the line.
  3. Set only the color. column-rule-color: blue paints that line blue.
  4. Gap for space. column-gap leaves room for the divider in the gutter.

Example 2 — Hex Color

Use a brand hex value instead of a named color.

CSS
<style>
  p {
    column-count: 3;
    column-gap: 1.5rem;
    column-rule-style: solid;
    column-rule-width: 3px;
    column-rule-color: #e11d48;
  }
</style>

<p>
  London. Michaelmas term lately over…
</p>
Try It Yourself

How It Works

  1. Same scaffold. Columns, gap, solid style, and width stay the same.
  2. Swap the color format. #e11d48 is a hex color instead of a keyword.
  3. Any <color> works. rgb(), hsl(), and var(--brand) follow the same pattern.
  4. Longhand benefit. You change color without rewriting width or style.

Example 3 — currentColor

Let the divider match the paragraph text color.

CSS
<style>
  p {
    color: purple;
    column-count: 3;
    column-gap: 1.5rem;
    column-rule-style: solid;
    column-rule-width: 3px;
    column-rule-color: currentColor;
  }
</style>

<p>
  London. Michaelmas term lately over…
</p>
Try It Yourself

How It Works

  1. Set text color. color: purple updates the computed text color.
  2. Use the default keyword. currentColor is the initial value of column-rule-color.
  3. Rule follows text. The divider uses the same purple as the words.
  4. Theme tip. Change color once and both text and rule stay in sync.

Edge Cases & Pitfalls

If the color seems missing, check style and contrast first.

style

Color needs a visible style

With column-rule-style: none (the default), no line is drawn. Set solid, dashed, or another style before judging the color.

short

Shorthand can reset color

Writing column-rule after a longhand resets width, style, and color together. Put column-rule-color after the shorthand when you need a color override.

contrast

Low contrast hides the rule

A light gray rule on a white page is easy to miss. Use enough contrast when teaching or debugging.

transparent

transparent is still a color

The style and width remain; you just cannot see the paint. Prefer none on style if you want no rule at all.

list

Multiple colors are not Baseline yet

Comma-separated colors and repeat() come from newer gap-decoration specs. Stick to one color for reliable support.

Browser Support

column-rule-color is a browser layout property. Node.js, Deno, and Bun do not apply it.

✓ Baseline · Widely available since 2017

column-rule-color

Chrome 50+, Firefox 52+, Safari 9+, Edge 12+, IE 10+. Classic single-color values are widely supported.

97% modern browsers
Google Chrome 50+
Full support
Mozilla Firefox 52+
Full support
Apple Safari 9+
Full support
Microsoft Edge 12+
Full support
Opera 37+
Full support
Samsung Internet 5.0+
Full support
Internet Explorer 10+
Full support
column-rule-color Widely supported

Bottom line: Safe for production with a single color value. Treat multi-color lists and repeat() as progressive enhancement only.

Key Takeaways

  • Role: color longhand for the multi-column divider.
  • Default: currentColor follows the text color.
  • Needs style: pair with a visible column-rule-style.
  • Shorthand: use column-rule when setting width, style, and color together.

One line: column-rule-color paints the column divider; give it a visible style first, then set any CSS color.

Frequently Asked Questions

column-rule-color sets the color of the line drawn between columns in a multi-column layout. It is the color longhand of the column-rule shorthand.
The initial value is currentColor, which uses the element's computed text color for the rule.
Color alone is not enough. column-rule-style must be a visible style such as solid or dashed, and you usually want a non-zero column-rule-width and column-gap.
column-rule sets width, style, and color together. column-rule-color changes only the color without resetting the other two longhands.
Any valid CSS color: named colors, hex, rgb(), hsl(), currentColor, transparent, and var() custom properties.
Chrome 50+, Firefox 52+, Safari 9+, Edge 12+, and IE 10+. It is a browser layout property, not a Node.js feature.

Next: column-rule-style

Set only the line style of the column divider.

column-rule-style tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful