Image recolor vs background color

Hi all,
in one of my projects i am using a button (default widget) and assigning to its pressed state the following style:

lv_style_set_pad_all(&style, 0);
lv_style_set_border_width(&style, 0);
lv_style_set_radius(&style, 0);
lv_style_set_bg_color(&style, lv_color_hex(0xffcc00));

then i am also recoloring an image (when in its pressed state) created using the online image converter (ONLY_ALPHA_CHANNEL) assigning to it the following style:

lv_style_set_img_recolor_opa(&style2, 255);

the two things both recolors as yellow when pressed, however the second one is of a darker yellow color while i want them to be of th eexact same color.
What is the solution to this problem?