赤、緑、青の色レベル(0..255)を入力し、 変換 ボタンを押してください:
R、G、B値を255で割って、範囲を0..255から0..1に変更します:
R' = R/255
G' = G/255
B' = B/255
黒色(K)は赤(R')、緑(G')、青(B')の色から計算されます:
K = 1-max(R'、 G'、 B')
The cyan color (C) is calculated from the red (R') and black (K) colors:
C = (1-R'-K) / (1-K)
The magenta color (M) is calculated from the green (G') and black (K) colors:
M = (1-G'-K) / (1-K)
The yellow color (Y) is calculated from the blue (B') and black (K) colors:
Y = (1-B'-K) / (1-K)
色 | 色 名前 |
(R,G,B) | 16進数 | (C,M,Y,K) |
---|---|---|---|---|
黒 | (0,0,0) | #000000 | (0,0,0,1) | |
白 | (255,255,255) | #FFFFFF | (0,0,0,0) | |
赤 | (255,0,0) | #FF0000 | (0,1,1,0) | |
緑 | (0,255,0) | #00FF00 | (1,0,1,0) | |
青 | (0,0,255) | #0000FF | (1,1,0,0) | |
黄 | (255,255,0) | #FFFF00 | (0,0,1,0) | |
シアン | (0,255,255) | #00FFFF | (1,0,0,0) | |
マゼンタ | (255,0,255) | #FF00FF | (0,1,0,0) |