ColorSpace.Named


public static final enum ColorSpace.Named
extends Enum<ColorSpace.Named>

java.lang.Object
   ↳ java.lang.Enum<android.graphics.ColorSpace.Named>
     ↳ android.graphics.ColorSpace.Named


List of common, named color spaces. A corresponding instance of ColorSpace can be obtained by calling ColorSpace.get(Named):

 ColorSpace cs = ColorSpace.get(ColorSpace.Named.DCI_P3);
 

The properties of each color space are described below (see sRGB for instance). When applicable, the color gamut of each color space is compared to the color gamut of sRGB using a CIE 1931 xy chromaticity diagram. This diagram shows the location of the color space's primaries and white point.

Summary

Enum values

ColorSpace.Named  ACES

RGB color space ACES standardized as SMPTE ST 2065-1:2012. 

ColorSpace.Named  ACESCG

RGB color space ACEScg standardized as Academy S-2014-004. 

ColorSpace.Named  ADOBE_RGB

RGB color space Adobe RGB (1998). 

ColorSpace.Named  BT2020

RGB color space BT.2020 standardized as Rec. 

ColorSpace.Named  BT2020_HLG

RGB color space BT.2100 standardized as Hybrid Log Gamma encoding. 

ColorSpace.Named  BT2020_PQ

RGB color space BT.2100 standardized as Perceptual Quantizer encoding. 

ColorSpace.Named  BT709

RGB color space BT.709 standardized as Rec. 

ColorSpace.Named  CIE_LAB

Lab color space CIE L*a*b*. 

ColorSpace.Named  CIE_XYZ

XYZ color space CIE XYZ. 

ColorSpace.Named  DCI_P3

RGB color space DCI-P3 standardized as SMPTE RP 431-2-2007. 

ColorSpace.Named  DISPLAY_P3

RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999. 

ColorSpace.Named  EXTENDED_SRGB

RGB color space scRGB-nl standardized as IEC 61966-2-2:2003. 

ColorSpace.Named  LINEAR_EXTENDED_SRGB

RGB color space scRGB standardized as IEC 61966-2-2:2003. 

ColorSpace.Named  LINEAR_SRGB

RGB color space sRGB standardized as IEC 61966-2.1:1999. 

ColorSpace.Named  NTSC_1953

RGB color space NTSC, 1953 standard. 

ColorSpace.Named  OK_LAB

ERROR(Lab/android.graphics.ColorSpace.Lab Lab) color space OkLab standardized as OkLab

PropertyValue
NameOklab
CIE standard illuminantD65
Range L:[0.0,1.0],a:[2,2],b:[2,2]
 

ColorSpace.Named  PRO_PHOTO_RGB

RGB color space ProPhoto RGB standardized as ROMM RGB ISO 22028-2:2013. 

ColorSpace.Named  SMPTE_C

RGB color space SMPTE C. 

ColorSpace.Named  SRGB

RGB color space sRGB standardized as IEC 61966-2.1:1999. 

Public methods

static ColorSpace.Named valueOf(String name)
static final Named[] values()

Inherited methods

final Object clone()

Throws CloneNotSupportedException.

final int compareTo(ColorSpace.Named o)

Compares this enum with the specified object for order.

final boolean equals(Object other)

Returns true if the specified object is equal to this enum constant.

final void finalize()

enum classes cannot have finalize methods.

final Class<ColorSpace.Named> getDeclaringClass()

Returns the Class object corresponding to this enum constant's enum type.

final int hashCode()

Returns a hash code for this enum constant.

final String name()

Returns the name of this enum constant, exactly as declared in its enum declaration.

final int ordinal()

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).

String toString()

Returns the name of this enum constant, as contained in the declaration.

static <T extends Enum<T>> T valueOf(Class<T> enumClass, String name)

Returns the enum constant of the specified enum class with the specified name.

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

abstract int compareTo(ColorSpace.Named o)

Compares this object with the specified object for order.

Enum values

ACES

Added in API level 26
public static final ColorSpace.Named ACES

RGB color space ACES standardized as SMPTE ST 2065-1:2012.

ChromaticityRedGreenBlueWhite point
x0.734700.000000.000100.32168
y0.265301.00000-0.077000.33767
PropertyValue
NameSMPTE ST 2065-1:2012 ACES
CIE standard illuminantD60
Opto-electronic transfer function (OETF) CACES=Clinear
Electro-optical transfer function (EOTF) Clinear=CACES
Range[65504.0,65504.0]

ACES (orange) vs sRGB (white)

ACESCG

Added in API level 26
public static final ColorSpace.Named ACESCG

RGB color space ACEScg standardized as Academy S-2014-004.

ChromaticityRedGreenBlueWhite point
x0.7130.1650.1280.32168
y0.2930.8300.0440.33767
PropertyValue
NameAcademy S-2014-004 ACEScg
CIE standard illuminantD60
Opto-electronic transfer function (OETF) CACEScg=Clinear
Electro-optical transfer function (EOTF) Clinear=CACEScg
Range[65504.0,65504.0]

ACEScg (orange) vs sRGB (white)

ADOBE_RGB

Added in API level 26
public static final ColorSpace.Named ADOBE_RGB

RGB color space Adobe RGB (1998).

ChromaticityRedGreenBlueWhite point
x0.640.210.150.3127
y0.330.710.060.3290
PropertyValue
NameAdobe RGB (1998)
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CRGB=C12.2linear
Electro-optical transfer function (EOTF) Clinear=C2.2RGB
Range[0..1]

Adobe RGB (orange) vs sRGB (white)

BT2020

Added in API level 26
public static final ColorSpace.Named BT2020

RGB color space BT.2020 standardized as Rec. ITU-R BT.2020-1.

ChromaticityRedGreenBlueWhite point
x0.7080.1700.1310.3127
y0.2920.7970.0460.3290
PropertyValue
NameRec. ITU-R BT.2020-1
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CBT2020={4.5×ClinearClinear<0.0181 1.0993×C12.2linear0.0993Clinear0.0181
Electro-optical transfer function (EOTF) Clinear={CBT20204.5CBT2020<0.08145 (CBT2020+0.09931.0993)2.2CBT20200.08145
Range[0..1]

BT.2020 (orange) vs sRGB (white)

BT2020_HLG

Added in API level 34
public static final ColorSpace.Named BT2020_HLG

RGB color space BT.2100 standardized as Hybrid Log Gamma encoding.

PropertyValue
NameHybrid Log Gamma encoding
CIE standard illuminantD65
Range[0..1]

BT2020_PQ

Added in API level 34
public static final ColorSpace.Named BT2020_PQ

RGB color space BT.2100 standardized as Perceptual Quantizer encoding.

PropertyValue
NamePerceptual Quantizer encoding
CIE standard illuminantD65
Range[0..1]

BT709

Added in API level 26
public static final ColorSpace.Named BT709

RGB color space BT.709 standardized as Rec. ITU-R BT.709-5.

ChromaticityRedGreenBlueWhite point
x0.6400.3000.1500.3127
y0.3300.6000.0600.3290
PropertyValue
NameRec. ITU-R BT.709-5
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CBT709={4.5×ClinearClinear<0.018 1.099×C12.2linear0.099Clinear0.018
Electro-optical transfer function (EOTF) Clinear={CBT7094.5CBT709<0.081 (CBT709+0.0991.099)2.2CBT7090.081
Range[0..1]

BT.709

CIE_LAB

Added in API level 26
public static final ColorSpace.Named CIE_LAB

Lab color space CIE L*a*b*. This color space uses CIE XYZ D50 as a profile conversion space.

PropertyValue
NameGeneric L*a*b*
CIE standard illuminantD50
RangeL:[0.0,100.0],a:[128,128],b:[128,128]

CIE_XYZ

Added in API level 26
public static final ColorSpace.Named CIE_XYZ

XYZ color space CIE XYZ. This color space assumes standard illuminant D50 as its white point.

PropertyValue
NameGeneric XYZ
CIE standard illuminantD50
Range[2.0,2.0]

DCI_P3

Added in API level 26
public static final ColorSpace.Named DCI_P3

RGB color space DCI-P3 standardized as SMPTE RP 431-2-2007.

ChromaticityRedGreenBlueWhite point
x0.6800.2650.1500.314
y0.3200.6900.0600.351
PropertyValue
NameSMPTE RP 431-2-2007 DCI (P3)
CIE standard illuminantN/A
Opto-electronic transfer function (OETF) CP3=C12.6linear
Electro-optical transfer function (EOTF) Clinear=C2.6P3
Range[0..1]

DCI-P3 (orange) vs sRGB (white)

DISPLAY_P3

Added in API level 26
public static final ColorSpace.Named DISPLAY_P3

RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999.

ChromaticityRedGreenBlueWhite point
x0.6800.2650.1500.3127
y0.3200.6900.0600.3290
PropertyValue
NameDisplay P3
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CDisplayP3={12.92×ClinearClinear<0.0030186 1.055×C12.4linear0.055Clinear0.0030186
Electro-optical transfer function (EOTF) Clinear={CDisplayP312.92CsRGB<0.04045 (CDisplayP3+0.0551.055)2.4CsRGB0.04045
Range[0..1]

Display P3 (orange) vs sRGB (white)

EXTENDED_SRGB

Added in API level 26
public static final ColorSpace.Named EXTENDED_SRGB

RGB color space scRGB-nl standardized as IEC 61966-2-2:2003.

ChromaticityRedGreenBlueWhite point
x0.6400.3000.1500.3127
y0.3300.6000.0600.3290
PropertyValue
NamescRGB-nl IEC 61966-2-2:2003
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CscRGB={sign(Clinear)12.92×|Clinear||Clinear|<0.0031308 sign(Clinear)1.055×|Clinear|12.40.055|Clinear|0.0031308
Electro-optical transfer function (EOTF) Clinear={sign(CscRGB)|CscRGB|12.92|CscRGB|<0.04045 sign(CscRGB)(|CscRGB|+0.0551.055)2.4|CscRGB|0.04045
Range[0.799..2.399[

Extended sRGB (orange) vs sRGB (white)

LINEAR_EXTENDED_SRGB

Added in API level 26
public static final ColorSpace.Named LINEAR_EXTENDED_SRGB

RGB color space scRGB standardized as IEC 61966-2-2:2003.

ChromaticityRedGreenBlueWhite point
x0.6400.3000.1500.3127
y0.3300.6000.0600.3290
PropertyValue
NamescRGB IEC 61966-2-2:2003
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CscRGB=Clinear
Electro-optical transfer function (EOTF) Clinear=CscRGB
Range[0.5..7.499[

Extended sRGB (orange) vs sRGB (white)

LINEAR_SRGB

Added in API level 26
public static final ColorSpace.Named LINEAR_SRGB

RGB color space sRGB standardized as IEC 61966-2.1:1999.

ChromaticityRedGreenBlueWhite point
x0.6400.3000.1500.3127
y0.3300.6000.0600.3290
PropertyValue
NamesRGB IEC61966-2.1 (Linear)
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CsRGB=Clinear
Electro-optical transfer function (EOTF) Clinear=CsRGB
Range[0..1]

sRGB

NTSC_1953

Added in API level 26
public static final ColorSpace.Named NTSC_1953

RGB color space NTSC, 1953 standard.

ChromaticityRedGreenBlueWhite point
x0.670.210.140.310
y0.330.710.080.316
PropertyValue
NameNTSC (1953)
CIE standard illuminantC
Opto-electronic transfer function (OETF) CBT709={4.5×ClinearClinear<0.018 1.099×C12.2linear0.099Clinear0.018
Electro-optical transfer function (EOTF) Clinear={CBT7094.5CBT709<0.081 (CBT709+0.0991.099)2.2CBT7090.081
Range[0..1]

NTSC 1953 (orange) vs sRGB (white)

OK_LAB

public static final ColorSpace.Named OK_LAB

ERROR(Lab/android.graphics.ColorSpace.Lab Lab) color space OkLab standardized as OkLab

PropertyValue
NameOklab
CIE standard illuminantD65
Range L:[0.0,1.0],a:[2,2],b:[2,2]

PRO_PHOTO_RGB

Added in API level 26
public static final ColorSpace.Named PRO_PHOTO_RGB

RGB color space ProPhoto RGB standardized as ROMM RGB ISO 22028-2:2013.

ChromaticityRedGreenBlueWhite point
x0.73470.15960.03660.3457
y0.26530.84040.00010.3585
PropertyValue
NameROMM RGB ISO 22028-2:2013
CIE standard illuminantD50
Opto-electronic transfer function (OETF) CROMM={16×ClinearClinear<0.001953 C11.8linearClinear0.001953
Electro-optical transfer function (EOTF) Clinear={CROMM16CROMM<0.031248 C1.8ROMMCROMM0.031248
Range[0..1]

ProPhoto RGB (orange) vs sRGB (white)

SMPTE_C

Added in API level 26
public static final ColorSpace.Named SMPTE_C

RGB color space SMPTE C.

ChromaticityRedGreenBlueWhite point
x0.6300.3100.1550.3127
y0.3400.5950.0700.3290
PropertyValue
NameSMPTE-C RGB
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CBT709={4.5×ClinearClinear<0.018 1.099×C12.2linear0.099Clinear0.018
Electro-optical transfer function (EOTF) Clinear={CBT7094.5CBT709<0.081 (CBT709+0.0991.099)2.2CBT7090.081
Range[0..1]

SMPTE-C (orange) vs sRGB (white)

SRGB

Added in API level 26
public static final ColorSpace.Named SRGB

RGB color space sRGB standardized as IEC 61966-2.1:1999.

ChromaticityRedGreenBlueWhite point
x0.6400.3000.1500.3127
y0.3300.6000.0600.3290
PropertyValue
NamesRGB IEC61966-2.1
CIE standard illuminantD65
Opto-electronic transfer function (OETF) CsRGB={12.92×ClinearClinear<0.0031308 1.055×C12.4linear0.055Clinear0.0031308
Electro-optical transfer function (EOTF) Clinear={CsRGB12.92CsRGB<0.04045 (CsRGB+0.0551.055)2.4CsRGB0.04045
Range[0..1]

sRGB

Public methods

valueOf

public static ColorSpace.Named valueOf (String name)

Parameters
name String

values

public static final Named[] values ()

Returns
Named[]