Ingrese los niveles de color rojo, verde y azul (0..255) y presione el Convertirir botón:
Los valores R,G,B se dividen por 255 para cambiar el rango de 0..255 a 0..1:
R' = R/255
G' = G/255
B' = B/255
El color negro (K) se calcula a partir de los colores rojo (R'), verde (G') y azul (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)
Color | Color nombre |
(R,G,B) | Hex | (C,M,Y,K) |
---|---|---|---|---|
Negro | (0,0,0) | #000000 | (0,0,0,1) | |
Blanco | (255,255,255) | #FFFFFF | (0,0,0,0) | |
Rojo | (255,0,0) | #FF0000 | (0,1,1,0) | |
Verde | (0,255,0) | #00FF00 | (1,0,1,0) | |
Azul | (0,0,255) | #0000FF | (1,1,0,0) | |
Amarillo | (255,255,0) | #FFFF00 | (0,0,1,0) | |
Cian | (0,255,255) | #00FFFF | (1,0,0,0) | |
Magenta | (255,0,255) | #FF00FF | (0,1,0,0) |