if (color.startsWith("#")) .. Fix for https://github.com/plutext/docx4j/issues/101