Purpose: To evaluate the association between contrast sensitivity (CS) and central subfield thickness (CST) in diabetic macular edema (DME). Methods: This prospectively recruited, cross-sectional study included eyes with DME evaluated from November 2018 to March 2021. CST was measured using spectral-domain optical coherence tomography on the same day as CS testing. Only eyes with center-involving DME (CST >305 µm for women; >320 µm for men) were included. CS was evaluated using the quantitative CS function (qCSF) test. Outcomes included visual acuity (VA) and the following qCSF metrics: area under the log CS function, contrast acuity (CA), and CS thresholds at 1 to 18 cycles per degree (cpd). Pearson correlation and mixed-effects regression analyses were performed. Results: The cohort included 52 eyes of 43 patients. Pearson correlation analysis showed a stronger association between CST and CS thresholds at 6 cpd (r = −0.422, P = 0.002) than CST and VA (r = 0.293, P = 0.035). Mixed-effects univariate and multivariate regression analyses showed significant associations between CST and CA (β = −0.001, P = .030), CS at 6 cpd (β = −0.002, P = .008), and CS at 12 cpd (β = −0.001, P = .049) but no significant associations between CST and VA. Among the visual function metrics, the effect size of CST was largest on CS at 6 cpd (βStandardized = −0.37, P = .008). Conclusions: In patients with DME, CS may be more strongly associated with CST than VA. Including CS as an adjunct visual function outcome measure in eyes with DME may prove clinically valuable.