Styled text on the Mac varies in format. Keyboard Maestro will work with styled text if the system can read the clipboard into an attributed string (NSAttributedString).
If that cannot be done, then as far as Keyboard Maestro is concerned, the text is just plain text (presuming there is a plain text variant it can read which will almost always be the case).