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

Is it possible to divide a function into sections, something like this? Function myFunc
Possible Duplicate: Divide problem Why does c# show the output of this code as
I want to divide the window into 2 parts. Each part I can draw
How do you divide two integers and get a double or float answer in
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 a multi time replied message to it's containing messages?
Is it possible to divide a number into an array based on its value?
All numbers that divide evenly into x. I put in 4 it returns: 4,
I think I divide it because css grew big, and to do import. @import

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.