Accessing Particle System Custom Data Color mode with Shader Graph

In Shader Graph, I understand how to access the data from the Particle system using Custom Vertex Streams when using Custom Data in Vector mode.

What I don’t get is how to access it when using Color mode:
alt text

Is it even possible to access this color in Shader Graph using Custom Vertex Streams? If not, what about using the new Custom Function node in 2019.2?

If it’s the latter, I’ve only done anything with Shaders using the Shader Graph, so help with the related shader code would be VERY appreciated.

Thank you!

Color mode is exactly the same as vector mode with 4 curves. I.e you will get a Vector4 in ShaderGraph if you assign the Custom Vertex Stream in the particle system renderer component.