I know that there's a chart of the colours used by PrintUML, containing names and swatches. However, I need the HEX codes of the default colours used by Printuml because it seems that some of them might not correspond to the standard named colours at W3 (https://www.w3.org/TR/css-color-4/). For example, the shade of green that is used for the background of the circled "C" in classes, (about #b8d8b8) is not on the W3 chart, so it must be something the developers customized.
(--------)
Hello A,
You can see on the source code...
Then, yes, you can customized that, and define color as W3 color, as:
@startuml class Class0 class Class1 << (C, palegreen) >> @enduml
See also:
If that can help,Regards,Th.
Quite a few are defined in https://github.com/plantuml/plantuml/blob/bc1074a7758e80c523aa51c4665fc23949827980/src/net/sourceforge/plantuml/ColorParam.java
For example:
stereotypeCBackground(HColorUtils.COL_ADD1B2),
Defines the default background for the "C" stereotype as #ADD1B2
You can double-check by drawing the shape in SVG and using "inspect element" in your browser, which should let you select the different SVG components and show you their attributes (like fill colour). Or take a screenshot, import into a paint program and use the colour pipette.