• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

RGB colours in .ASE files

Engaged ,
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

355

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

Community Expert , 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

Votes

Translate

Translate
Adobe
Community Expert ,
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

Votes

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