Looking at plot.VennDiagram
and by default, you can see how it converts numbers in y$colors
to rgb color strings. (Try getAnywhere("plot.VennDiagram")
to see for yourself.)
Here I put together two bits of code that processed the colors (in your case) into one function that will perform the conversion for you. Perhaps the positioning of the legend could be improved, but this is another problem ...
col.fn <- function(col, alpha=0.3) { col<- hcl(col * 360, 130, 60) col <- col2rgb(col)/255 col <- rgb(col[1, ], col[2, ], col[3, ], alpha) col } COL <- col.fn(y$colors)

source share