BACKGROUND
I'm trying to write down an algebraically rigorous (read: pedantic) expression for colors in the RGB "space". All I know is that I have a set \begin{equation} \mathcal{S} = \{R, G, B\} \label{eq:set} \end{equation} of three qualitative "entities" (for lack of a better term), each of which can take on a value in the set \begin{equation} \mathcal{K} = [0, \cdots, 255] \end{equation} of possible coefficients. Note that I'm not making any assumptions as to the orthogonality of the elements of $\mathcal{S}$.
QUESTION
How can I write down the vector space $\mathcal{C}$ in which colors "live" in both a rigorous and compact way? I initially thought of writing \begin{equation} \mathcal{C} = \mbox{span}\{\mathcal{S}\}, \end{equation} but that doesn't look right since $\mathcal{S}$ is a set of "labels" more than a set of vectors per se. Do I then have to go as far as writing down \begin{equation} \mathcal{C} = \mbox{span}\{ \mathcal{V} \} = \left\{\sum\limits_{c} \lambda_{c} v_{c} \mid c \in \mathcal{S}, \lambda_{c} \in \mathcal{K}, v_{c} \in \mathcal{V} \right\}, \end{equation} where \begin{equation} \mathcal{V} = \left\{ [1,0,0], [0,1,0], [0,0,1] \right\} ? \end{equation}
The problem is that this latest expression for $\mathcal{V}$
- looks clumsy,
- doesn't scale to large dimensions since it's a brute-force enumeration, and
- does not say which dimension corresponds to which color since $\mathcal{S}$ is by default an unordered set---so we're left with yet another aspect of the problem to transcribe.
EDIT
Calling $\mathcal{C}$ a vector space has raised quite a few eyebrows. I shall therefore refer to it as a bounded, discretized, "space of vectors". Please let me know if you have a better term for it. The fact remains that vectors for colors live in that "space".
To add to ThorWittich's answer, if you REALLY want to work with the finite field of order 256 and not a set of 256 elements, I'll show you how to define this in an "easy" to understand way.
Any element in your field $\Bbb F_{256}$ will be a polynomial $f = a_0 + a_1x + \cdots + a_7x^7$ with coefficients that are either $0$ or $1$. Next we need a reduction polynomial, which is a polynomial of degree $8$ with coefficients as above that is irreducible in $\Bbb F_2[x]$. What this means exactly is not important. We can take $$ r(x) = 1 + x + x^3 + x^4 + x^8. $$
Now addition in your field is defined by adding coefficients in polynomials and reducing them modulo 2. Multiplication is defined by multiplying two polynomials as you are used to, with a twist. If the polynomial you get from multiplication is of degree higher than $7$ then you divide it by the reduction polynomial $r(x)$. The remainder from this division with coefficients modulo $2$ is the result of your multiplication.
What this should tell you is that this is probably not what you want to do.