--- a/third_party/material_color_utilities/src/cpp/utils/utils.h
+++ b/third_party/material_color_utilities/src/cpp/utils/utils.h
@@ -18,6 +18,7 @@
 #define CPP_UTILS_UTILS_H_
 
 #include <cstdint>
+#include <cmath>
 #include <string>
 
 namespace material_color_utilities {
