RGB colours in .ASE files

Explorer ,
Nov 23, 2021 Nov 23, 2021

Copy link to clipboard

Copied

I'm still trying to work out the RGB values of a single pantone swatch in ASE format, which is discussed here

My swatch is as follows when viewed in hexeditor: 

hex_col.png

The colour when imported into Photoshop is RGB 255, 215, 0 or #FFD700 in hex

I can find D7 and (the next) 00 but there is no FF (255 value)? What am I missing?

 

TOPICS
Actions and scripting

Views

43

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Nov 23, 2021 Nov 23, 2021
The RGB values are not stored directly as Hex. They are stored as 32 bit floating point numbers using a scale between 0 and 1. So each floating point number takes 4 bytes R 0x3f800000 = decimal 1   G 0x3f57d7d8 = decimal 0.843137   B 0x00000000 = decimal 0 multiply each by 255 gives R 255 G 215 B 0 Dave

Likes

Translate

Translate
Adobe Community Professional ,
Nov 23, 2021 Nov 23, 2021

Copy link to clipboard

Copied

LATEST

The RGB values are not stored directly as Hex. They are stored as 32 bit floating point numbers using a scale between 0 and 1. So each floating point number takes 4 bytes

 

R 0x3f800000 = decimal 1  

G 0x3f57d7d8 = decimal 0.843137  

B 0x00000000 = decimal 0

 

multiply each by 255 gives

R 255

G 215

B 0

 

Dave

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines