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

Photoshop's RGB to HSB calculation

Engaged ,
Nov 06, 2023 Nov 06, 2023

Copy link to clipboard

Copied

When I type RGB values or a hex code into Photoshop's color picker, it automatically calculates HSB values. What are the formulas used to calculate the H, S, and B values presented in the color picker tool?

 

Scott

TOPICS
Windows

Views

265

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

Engaged , Jul 29, 2024 Jul 29, 2024

H = IF(180/PI()*ATAN2(2*R-G-B,SQRT(3)*(G-B))<0,180/PI()*ATAN2(2*R-G-B,SQRT(3)*(G-B))+360,180/PI()*ATAN2(2*R-G-B,SQRT(3)*(G-B)))

S=(Max(R,G,B)-Min(R,G,B))/Max(R,G,B)

B=Max(R,G,B)/255

 

Votes

Translate

Translate
Adobe
Community Expert ,
Nov 07, 2023 Nov 07, 2023

Copy link to clipboard

Copied

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
Engaged ,
Jul 29, 2024 Jul 29, 2024

Copy link to clipboard

Copied

LATEST

H = IF(180/PI()*ATAN2(2*R-G-B,SQRT(3)*(G-B))<0,180/PI()*ATAN2(2*R-G-B,SQRT(3)*(G-B))+360,180/PI()*ATAN2(2*R-G-B,SQRT(3)*(G-B)))

S=(Max(R,G,B)-Min(R,G,B))/Max(R,G,B)

B=Max(R,G,B)/255

 

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