开发同事截图说我提供的绿色色号在显示时跟设计稿不一致,特别亮。对照Sketch的色值,这个绿色显示为RGB(0,170,173)。开发对照后表示出问题的颜色就是用的这个色值。
于是打开单独的取色器App一选,RGB值竟然为(43, 170, 173).
后来搜索了一下这个问题,在Stackexchange上就早有同样问题:
https://graphicdesign.stackexchange.com/questions/53073/color-mismatching-on-sketch-exports
When we export an image, we interpret our color values in the sRGB colorspace. We also save the color space in the metadata, unless you have ‘Save for Web’ checked in the export panel. Regardless of that setting though, the intent has been to save with sRGB, which works nicely with Safari as it interprets all images as being saved with sRGB in the first place. If you would also open the image in Preview, it would recognize the sRGB profile and render it as close to Safari as possible. We believe this way we get the most consistent color representation possible.
iOS app color profile最佳实践
请参照iOS Developer Human Interface Guideline:
https://developer.apple.com/ios/human-interface-guidelines/visual-design/color/