Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7618701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:28:28+00:00 2026-05-31T03:28:28+00:00

How to divide the #000000 – #ffffff interval intro x equal parts, to get

  • 0

How to divide the #000000 – #ffffff interval intro x equal parts, to get x gray colors? Is this possible?

Edit:
More specifically:
I want ‘divide’ the #000000 – #ffffff color range like this:

  1. #000000
  2. #1E1E1E
  3. #282828
  4. #515151
  5. #5B5B5B
  6. #848484
  7. #8E8E8E
  8. #B7B7B7
  9. #C1C1C1
  10. #EAEAEA
  11. #F4F4F4
  12. #FFFFFF

In this list there are 12 colors. (Check out the sgi gray colors here.)

But what if I want not 12 but 32 colors? How to calculate them?
I hope now you understand me 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:28:29+00:00Added an answer on May 31, 2026 at 3:28 am

    #000000 is actually RGB with R = #00, G = #00, B = #00

    You get a gray color for R = G = B.

    #00 – #FF leaves you with 256 possible combinations, so if you wanna exclude white and black (#000000 and #FFFFFF) try something like this:

    step = 256 / (x + 2)
    

    So if you want to get 4 grays, step resolves to

    step = 256 / (4+2) = 256 / 6 = 43
    

    Transform that from decimal to hex:

    step_16 = 43_16 = #2B
    

    The colors would now be:

    #2B2B2B
    #565656
    #818181
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I divide a circle into three equal parts with HTML5 canvas 2D
How do I divide a large positive integer n into m parts uniformly randomly
I'm trying to divide long text in small parts, so that every part is
I want to divide the Google map display into 200 parts , I have
Is it possible to divide an unsigned integer by 10 by using pure bit
I divide dynamic websites into two types: The first one use e.g PHP ,
I want to divide a number of type double, by an int. I only
I want to divide my window (wpf) in three columns: left column must be
How can I divide a sentence like He and his brother playing football. into
I wan't to divide my CI into multiple applications. I should say that it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.