The column-rule-color property sets the color of divider lines between columns — the longhand color piece of the column-rule shorthand.
01
Rule Color
Column divider hue.
02
Longhand
Part of column-rule.
03
currentColor
Default value.
04
Any CSS Color
Named, hex, hsl.
05
With Style
Needs width + style.
06
Design
Match your theme.
Fundamentals
Definition and Usage
The column-rule-color CSS property specifies the color of the line drawn between columns in a multi-column layout. It enhances visual separation between columns, making content more readable and aesthetically pleasing.
Use it when you already have column-rule-width and column-rule-style set (or the column-rule shorthand) and want to control the divider color separately — for example, to match your brand palette.
💡
Beginner Tip
A column rule only appears when column-rule-style is not none and you have column-gap space. column-rule-color alone does not create a visible line.
Foundation
📝 Syntax
The syntax for column-rule-color accepts any valid CSS color value:
Two columns with a purple brand-colored rule. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
How It Works
You can set width and style with the shorthand, then override only the color with the longhand property.
🛠 Functional & Theme Colors
Use HSL and CSS custom properties for flexible, theme-aware column rule colors.
Example 3 — HSL Column Rule Color
Set the rule color with HSL for easy lightness adjustments.
Two columns with a sky-blue rule from a CSS variable. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
How It Works
Change --rule-color once in :root to update every themed column rule on the page.
🧠 How column-rule-color Works
1
Column rule exists
Set column-rule-width and column-rule-style so a line can render.
Prerequisite
2
You set column-rule-color
Choose any valid CSS color with column-rule-color.
CSS rule
3
Browser paints the rule
The divider line in each column gap uses your chosen color.
Rendering
=
🎨
Themed column dividers
Column separators match your design while keeping text readable.
Compatibility
Modern Browser Support
The column-rule-color property is supported in most modern browsers, including Chrome, Firefox, Safari, Edge, and Opera.
✓ Baseline · Modern browsers
Column rule colors everywhere
All major browsers support column-rule-color as part of the Multi-column Layout module.
97%Modern browser support
Google Chrome50+ · Desktop & Mobile
Full support
Mozilla Firefox52+ · Desktop & Mobile
Full support
Apple Safari9+ · macOS & iOS
Full support
Microsoft Edge12+ · All versions
Full support
Opera37+ · Modern versions
Full support
column-rule-color property97% supported
Bottom line: Use column-rule-color freely for multi-column divider colors. Ensure width and style are set so the rule is visible.
Wrap Up
Conclusion
The column-rule-color property is a useful tool for enhancing the readability and design of multi-column layouts. By customizing the color of the column rule, you can create visually distinct column separations that align with your overall design scheme.
Experiment with different colors to see how this property can improve the look and feel of your web projects.
Set column-rule-style and column-rule-width for visible rules
Use subtle colors that complement body text
Store rule colors in CSS variables for theming
Use longhand when changing only color on hover states
Pair with adequate column-gap spacing
❌ Don’t
Expect a visible rule with color alone — style must not be none
Use high-contrast neon rules that distract from content
Forget that default is currentcolor (text color)
Reset width/style when you only meant to change color — use longhand
Rely on column rule color for accessibility — gap and typography matter more
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about column-rule-color
Use these points when coloring column dividers.
5
Core concepts
🎨01
Rule color
Divider line hue.
Purpose
⚙02
currentColor
Default value.
Default
🖌03
Longhand
Part of column-rule.
Syntax
📐04
Needs style
Width + style too.
Tip
🛸05
Any color
Named, hex, hsl.
Values
❓ Frequently Asked Questions
column-rule-color sets the color of the line drawn between columns in a multi-column layout. It is the longhand color component of the column-rule shorthand.
The initial value is currentcolor, which uses the element's computed text color for the column rule.
Yes. For a visible rule, set column-rule-style to something other than none and column-rule-width to a length. column-rule-color only controls the line color.
column-rule is a shorthand for width, style, and color together. column-rule-color lets you change only the color without resetting width or style.
Any valid CSS color: named colors, hex, rgb, hsl, currentColor, and CSS variables such as var(--brand-color).