% CSS 颜色属性应该是什么意思?

What is the % CSS Color Attribute supposed to mean?

我有一个客户要求元素背景使用以下颜色:PMS227 75%

这是什么颜色? 75%是什么意思?

这几乎可以肯定是指 alpha 通道或颜色的不透明度。这将是一个介于 0 和 1 之间的浮点数。

background-color: rgba(173, 0, 91, 0.75);

演示:

.element {
  width: 100px;
  height: 100px;
  background-color: rgba(173, 0, 91, 0.75);
}
<div class="element"></div>

PMS 是印刷品的颜色标准,由 Pantone 创建。我已经在上面显示了 RGB 等价物。

您提到的元素无效。但是,百分比在 rgb/rgba 中有效。 R 代表红色,G 代表绿色,B 代表蓝色,A 代表 alpha。

rgb(0, 0, 100%)

这意味着 100% 蓝色。