Skip to main content
Inspiring
November 23, 2021
Answered

RGB colours in .ASE files

  • November 23, 2021
  • 1 reply
  • 628 views

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: 

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?

 

This topic has been closed for replies.
Correct answer davescm

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

1 reply

davescm
Community Expert
davescmCommunity ExpertCorrect answer
Community Expert
November 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