Switchable hydrophilicity solvent liquid-liquid microextraction (SHS-LLME) was employed as a sample pretreatment method to enrich and pre-concentrate the dye Tartrazine (Tz) before its quantification using UV-visible spectrophotometry. N-methyl dipropyl amine (MDPA) was used as the extraction solvent. The key parameters of the SHS-LLME process were optimized using central composite design (CCD) and response surface methodology (RSM) to evaluate the interactive effects of the three most critical operational variables. The interactions between the MDPA, HCl, and NaOH volume on dye absorption were studied. The LOD and LOQ (n = 7) were calculated as 0.23 μg/mL and 0.692 μg/mL, respectively. The method showed a relative standard deviation (RSD) of 1.71% for 10 replicate measurements. Enrichment and preconcentration factors were determined to be 63 and 33.33, respectively, demonstrating the method’s effectiveness in enhancing Tartrazine detection.