The following MWE shows that the second section is black instead of red. Even if this happens only if there is no text between these two sections: Is this a bug?
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{scrlayer-scrpage}
\addtokomafont{section}{\color{red}}
\addtokomafont{pageheadfoot}{\color{blue}}
\begin{document}
...
\\[0.84\textheight]
\section{Test}
\section{Test}
\end{document}



\textcolorinstead of\color. Looks like\textcoloris more stable: http://tex.stackexchange.com/questions/86039/what-is-the-difference-between-textcolor-and-color – Stefan Braun Jun 11 '16 at 13:55\RedeclareSectionCommand[font=\large\bfseries\sffamily\color{red}]{section}– Johannes_B Jun 11 '16 at 14:00\addtokomafontshould not be used for the text color? – Stefan Braun Jun 11 '16 at 14:03\RedeclareSectionCommand[font=\large\color{red}]{section}does the same as\setkomafont{section}{ \large\color{red}}. Note that the default size forsectioninscrartclis\Largeand not\large. – esdd Jun 12 '16 at 18:54\color{red}is allowed in\addtokomafont,\setkomafontand as value for thefontoption in\RedeclareSectionCommand. AFAIK the problem will be solved in the next KOMA-Script version (3.21). – esdd Jun 12 '16 at 18:59\Redeclare...i didn't get the odd behaviour (2016/05/10 v.3.20). – Johannes_B Jun 12 '16 at 19:15\largeis used. Change it to\Large(default for sections inscrartcl) and you get the page break and the black color. – esdd Jun 12 '16 at 20:05