Skip to main content

CIE L*u*v*

Derived from XYZ. L*, luma, is identical to L* in L*a*b*

When converting to most color types, you must supply color space and standard illuminant reference white. See available Color Spaces and Stardard Illuminants.

New Color

Color.from('luv', [l, u, v])

Conversion to

.to('luv',{
colorSpace: string, // optional, default = 'srgb' -- ignored if converting from xyz, lab
referenceWhite: string, // optional, default = 'd65'
round: boolean // optional, defaults to true
})

Get methods

.getL(): number
.getU(): number
.getV(): number

JavaScript

const Color = require('chromaticity-color-utilities')

const color1 = Color.from('luv', [60, 84, -109])
const color3 = color2.to('luv')

const color4 = color1.to('rgb')
const color5 = color1.to('rgb', {
colorSpace: 'adobergb',
referenceWhite: 'd50',
})

TypeScript

import Color from 'chromaticity-color-utilities'

const c: Color.luv = Color.from('luv', [60, 84, -109])