\version "2.19.49"

% Function to override colors
%% http://lsr.di.unimi.it/LSR/Item?id=443
%% see also http://lilypond.org/doc/v2.18/Documentation/learning/visibility-and-color-of-objects

#(define (override-color-for-all-grobs color)
  (lambda (context)
   (let loop ((x all-grob-descriptions))
    (if (not (null? x))
     (let ((grob-name (caar x)))
      (ly:context-pushpop-property context grob-name 'color color)
      (loop (cdr x)))))))


music = \new Staff \new Voice = myMelody {  c' c' r  c' }
text = \new Lyrics \lyricsto "myMelody" { \lyricmode { My ly -- rics } }

\score {
	<<
            \applyContext #(override-color-for-all-grobs red) 
            \music
            \text
	>>
}