Colored barline

Sorry in this has been asked before, can’t find it.

Is it possible to have a barline (start and end repeat) in a specific color?