Color withLuminance(double luminance) { final hsl = HSLColor.fromColor(this); return hsl.withLightness(luminance).toColor(); }