Lab value of a pixel

Hello, how can i have access of a lab value of a pixel from the active document? i need it to create a function that find the darkest pixel, thank you

You could try:

I am not 100% how is the support of other color modes there is an option for it… but maybe grayscale could be the way to go.

1 Like

thank you @Jarda for your helkp