# toRgbValue

abstract fun toRgbValue(reference: ReferenceWhite = ReferenceWhite.D50_2): IntArray?

Provides an sRGB value for this measurement for the specified illuminant and observer white point. Result is `null` if an invalid white point is specified.

#### Parameters

reference

Selected reference white (defaults to ReferenceWhite.D50_2)

open fun toRgbValue(illuminant: Illuminant = Illuminant.D50, observer: Observer = Observer.CIE1931): IntArray?

Provides an sRGB value for this measurement for the specified illuminant and observer white point. Result is `null` if an invalid white point is specified.

#### Parameters

illuminant

Selected illuminant reference for output (defaults to Illuminant.D50)

observer

Selected observer reference for output (defaults to Observer.CIE1931)