Open magicdawn opened 9 years ago
http://tools.medialab.sciences-po.fr/iwanthue/theory.php
HSL = hue saturation light HSV = hue saturation value
Colors with a low lightness will all look the same, whatever their value. The same with high lightness colors, and low saturation colors.
亮度lightness 较低的颜色, 看起来都是一样的, 此时他们的颜色hue 就不那么重要了. 亮度高时 / 饱和度低时也这样
http://www.css88.com/book/css/values/color/hsl.htm
// https://www.bilibili.com/video/BV1g3411u7Lg/
color: #0545b2; // 理想之蓝
color: #f4cd00; // 柠檬黄
color: #ef2729; // 石榴红
color: #f89c00; // 鹿箭
color: #233728; // 黛绿 rational blue
color: #f2b9b7; // 和熙粉
color: #f3cc91; // 芝士黄 cheese yellow
color: #6b4c68; // 葡萄紫 grape purple
color: #ff7227; // 落日橙 sunset orange
color: #004d62; // 碧海天 ocean sky
color: #23909b; // 洗碧空 washing sky
color: #aeb400; // 芥丝绿
color: #425a17; // 箬叶青 leaves green
name | hex | rgb | preview |
---|---|---|---|
mediumslateblue | #7b68ee | 123,104,238 | |
slateblue | #6a5acd | 106,90,205 | |
#C6CFFF | rgb(198,207,255) |
https://developer.mozilla.org/en-US/docs/Glossary/Color_space
Color spaces are named organizations of colors for underlying color models of coordinate-based color arrangements. A color model defines how the components of a color (for example, the h, w, and b channels of an hwb() color) relate to a color space. Most color spaces are three- or four- dimensional grids that represent colors. Each dimension (or axis) corresponds to a different channel. Colors can be expressed in multiple color spaces, and can be transformed from one color space to another, while still looking the same.
简单来说, Color Space 是一种颜色的表示方法. 一个颜色可以用多个表示方法表示.
sRGB
/ display-p3
/ ...sumary
lab()
: lightness + ab分量lch()
: lightness + chroma + hueoklab()
oklch()
hue 用于 hsl()
/ hwb()
/ lch()
/ oklch()
https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel
rgb
: r/g/b 的逗号从 CSS Colors Level 4 可以省略了, alpha 使用斜线分开; rgba
只是 rgb
的 alias. 如 rgb(255 0 0 / 0.5)
hsl
color()
color(color-space v1 v2 v3 [/ A])
如 color(srgb 255 0 0)
color(srgb 255 0 0 / 0.5)
color(from #abc srgb r g b)
这个 r
/ g
/ b
和 alpha
就是变量, 值来自 from color
https://www.learnui.design/blog/color-in-ui-design-a-practical-framework.html
hsl 由于是 double-cone, 可能并不适用?
All about colors.
中: "给你点颜色看看" ❌
I will teach you a lesson✅ give you some color to see see