The emergence of heterogeneous applications such as internet data, video streaming, and online gaming, brings in a demand for a network environments with capability of supporting diverse Quality of Services (QoS). Prioritizing the services is essential to ensure the delivery of information is at their best. This paper proposes a new code family to support optical domain service differentiation using spectral amplitude coding techniques within an optical code division multiple access (OCDMA) scenario. A particular user or service has a varying weight applied in order to obtain the desired signal quality. The proposed variable-weight code (VW-code) is constructed based on basic multi-service (MS) code. Mathematical model is developed to for performance evaluation of VW-MS code. In addition, the properties of proposed code is compared with other VW-OCDMA codes. It is shown that the proposed VW-MS provide an optimal code length with minimum cross-correlation compared to other VW-codes. Performance of VW-MS designed for triple-play services operating at bit rates of 0.622, 1.25 and 2.5 Gbps is demonstrated.