diff --git a/crates/typst/src/geom/color.rs b/crates/typst/src/geom/color.rs index 5bfb93c3..3801dbab 100644 --- a/crates/typst/src/geom/color.rs +++ b/crates/typst/src/geom/color.rs @@ -1409,7 +1409,7 @@ impl Repr for Color { } Self::Cmyk(c) => { eco_format!( - "rgb({}, {}, {}, {})", + "cmyk({}, {}, {}, {})", Ratio::new(c.c as _).repr(), Ratio::new(c.m as _).repr(), Ratio::new(c.y as _).repr(), diff --git a/tests/ref/compiler/repr-color-gradient.png b/tests/ref/compiler/repr-color-gradient.png index 36747d45..95136c1a 100644 Binary files a/tests/ref/compiler/repr-color-gradient.png and b/tests/ref/compiler/repr-color-gradient.png differ