def getColor(name):
try:<EOL><INDENT>c = getColorInfoList()[getColorList().index(name.upper())]<EOL>return (c[<NUM_LIT:1>] / <NUM_LIT>, c[<NUM_LIT:2>] / <NUM_LIT>, c[<NUM_LIT:3>] / <NUM_LIT>)<EOL><DEDENT>except:<EOL><INDENT>return (<NUM_LIT:1>, <NUM_LIT:1>, <NUM_LIT:1>)<EOL><DEDENT>
Retrieve RGB color in PDF format by name.

    Returns:
        a triple of floats in range 0 to 1. In case of name-not-found, "white" is returned.