Sisestage punase, rohelise ja sinise värvitasemed (0..255) ja vajutage nuppu Teisenda :
R , G , B väärtused jagatakse 255 muuta vahemikus 0..255 kuni 0..1:
R '= R / 255
G '= G / 255
B '= B / 255
Cmax = max ( R ', G ', B ')
Cmin = min ( R ', G ', B ')
Δ = Cmax - Cmin
Tooni arvutamine:
Küllastuse arvutamine:
Kerguse arvutamine:
L = ( Cmax + Cmin ) / 2
Värv | Värv nimi |
Hex | (R, G, B) | (H, S, L) |
---|---|---|---|---|
Must | # 000000 | (0,0,0) | (0 °, 0%, 0%) | |
Valge | #FFFFFF | (255 255 255) | (0 °, 0%, 100%) | |
Punane | # FF0000 | (255,0,0) | (0 °, 100%, 50%) | |
Pärn | # 00FF00 | (0,255,0) | (120 °, 100%, 50%) | |
Sinine | # 0000FF | (0,0255) | (240 °, 100%, 50%) | |
Kollane | # FFFF00 | (255 255,0) | (60 °, 100%, 50%) | |
Tsüaan | # 00FFFF | (0,255,255) | (180 °, 100%, 50%) | |
Magenta | # FF00FF | (255,0255) | (300 °, 100%, 50%) | |
Hõbe | #BFBFBF | (191,191,191) | (0 °, 0%, 75%) | |
Hall | # 808080 | (128 128 128) | (0 °, 0%, 50%) | |
Maroon | # 800000 | (128,0,0) | (0 °, 100%, 25%) | |
Oliiv | # 808000 | (128,128,0) | (60 °, 100%, 25%) | |
Roheline | # 008000 | (0,128,0) | (120 °, 100%, 25%) | |
Lilla | # 800080 | (128,0128) | (300 °, 100%, 25%) | |
Teal | # 008080 | (0,128,128) | (180 °, 100%, 25%) | |
Merevägi | # 000080 | (0,0128) | (240 °, 100%, 25%) |