Design Guide

How to Find a HEX Color Code and Build a Color Palette Online (Free)

Every color on a screen has a code, and most jobs need it in a particular format: HEX for a website, RGB for an app, HSL when you want a lighter version, CMYK for a print shop. The ToolTiny color picker gives you all four at once, then goes further: it builds palettes that match your color, tells you whether text in that color is readable, and lists ready-made Tailwind, CSS and brand colors. This guide follows a real screen recording with the color #BC1ACB, a strong purple.

HEX, RGB, HSL or CMYK: Which One When?

FormatOur exampleUse it for
HEX#BC1ACBCSS, HTML, design tools, sharing a color in a chat
RGBrgb(188, 26, 203)CSS, apps and code that want three numbers from 0 to 255
HSLhsl(295, 77%, 45%)Making a color lighter, darker or softer by changing one number
CMYKcmyk(7%, 87%, 0%, 20%)A first value for printed work; confirm it with your printer

Watch the Whole Process

The recording opens the tool from the menu, picks a color, types a HEX code, builds palettes, tests three backgrounds in the contrast checker and scrolls through the color tables.

How to Find a Color Code and Build a Palette, Step by Step

  1. Open the Color Picker

    Open the Developer menu in the top bar and choose Color Palette Generator, or go straight to tooltiny.com/color-palette.html.

    Developer menu with Color Palette Generator highlighted
    Developer → Color Palette Generator
  2. Look at the workspace

    The tool sits right under the title. On the left is a large color square with a rainbow hue bar; on the right a preview with the nearest CSS color name and four boxes: HEX, RGB, HSL and CMYK. Our page opened on a color we had used before, #D43FE2, which it labels ≈ mediumorchid.

    Color picker with a color square, hue bar, preview and HEX and RGB boxes
    Picker on the left, codes on the right
  3. Pick a color with the mouse

    Click or drag inside the square. Left to right changes how strong the color is, top to bottom how light it is. The rainbow bar on its right changes the hue. We clicked once and got #9C25A7, which the tool shows as rgb(156, 37, 167), hsl(295, 64%, 40%) and cmyk(7%, 78%, 0%, 35%), close to darkorchid.

    Clicking inside the color square to pick a purple
    Click or drag in the square
  4. Or type a HEX code

    Already have a code? Type it in the HEX box. We typed #BC1ACB and every other box changed at once: rgb(188, 26, 203), hsl(295, 77%, 45%) and cmyk(7%, 87%, 0%, 20%). The address bar also changed to color-palette.html#BC1ACB, a link that opens the same color.

    HEX box with the code BC1ACB and the converted RGB, HSL and CMYK values
    Type a HEX code, get every format
  5. Edit RGB, HSL or CMYK directly

    The other three boxes are not read-only. Click into HSL (or RGB, or CMYK), change a number and the color follows. This is the easiest way to make a color a little lighter: raise the last HSL number.

    Editing the lightness value inside the HSL box
    Every box can be edited
  6. Copy the code you need

    Each box has its own Copy button. Under the boxes, Copy link to this color copies the page address with the color in it, handy for sending to a teammate. The buttons under the square, Random, Pick from screen, From image and System picker, give you other ways to start.

    Copy button next to the HEX box
    Copy any format with one click
  7. Palettes from this color

    Scroll a little. Recent colors keeps the colors you used, and Palettes from this color builds matching colors for you. For #BC1ACB the Complementary color is #29CB1A, Analogous adds #631ACB and #CB1A82, and Triadic adds #CBBC1A and #1ACBBC. Click a swatch to copy it.

    Complementary, analogous and triadic palettes generated from BC1ACB
    Complementary, analogous, triadic
  8. More palettes, tints and shades

    Further down come Split complementary, Tetradic (square), Monochromatic and Tints & shades (50–950), where 500 is your color, 50 the lightest and 950 the darkest. Every row has CSS and JSON buttons, and the tints row also Tailwind, to copy the whole row at once.

    Split complementary, tetradic, monochromatic palettes and tints and shades from 50 to 950
    Tints & shades with CSS, JSON, Tailwind export
  9. Check the contrast

    The Contrast checker (WCAG 2.x) uses your color as the text color. On a white background #BC1ACB scored 5.06:1: enough for AA normal text (4.5:1) and AA large text (3:1), but not for AAA normal text, which needs 7:1.

    Contrast checker showing 5.06 to 1 for BC1ACB text on a white background
    5.06:1 on white
  10. Try another background

    Click the small color box next to Background to open a color chooser, or type a code. With a dark red #661A1A behind it the ratio fell to 2.40:1 and every check turned red.

    Background color chooser open with a dark red background and a 2.40 to 1 ratio
    Dark red background: 2.40:1
  11. See when text becomes hard to read

    With a grey-pink background #AD9494 the result was 1.79:1. The sample text on the left shows why: it almost disappears. The line under the checks also says which plain text color suits your color best: white text reads best (5.06:1) on a #BC1ACB background.

    Low contrast result of 1.79 to 1 on a grey pink background
    1.79:1, too low for any text
  12. Basic HTML & CSS color codes

    Below the tool, the Basic HTML & CSS Color Codes Table lists the 16 classic web colors (White, Silver, Gray, Black, Red…) with HEX and RGB. Click a code to copy it.

    Basic HTML and CSS color codes table with color previews, names, HEX and RGB values
    The 16 classic web colors
  13. Tailwind CSS and Material Design

    The next table holds the Tailwind CSS palette (22 colors × 11 shades) and, on the second tab, Material Design. Each cell shows its HEX code and copies it with one click.

    Tailwind CSS palette table with shades 50 to 950
    Tailwind CSS and Material Design tabs
  14. All CSS named colors

    All CSS Named Colors by Color Family shows every color name CSS understands, such as tomato, teal or rebeccapurple, grouped into families like Reds (13). Point at a card and it says Click to Copy.

    Cards of CSS named red colors such as Pink, Salmon, Tomato and Crimson
    Named colors, grouped by family
  15. CMYK colors for printing

    The CMYK Color Palette for Printing lists ink mixes (C, M, Y, K) with their usual R, G, B and HEX screen values. The page notes that print results still depend on paper, ink and the printer’s color profile.

    CMYK color chart with C, M, Y, K, R, G, B and HEX columns
    CMYK chart for print
  16. Brand colors

    Last comes Social Media & Tech Brand Colors, with a search box. In our recording it showed Facebook #0866FF, Instagram #FF0069, X (formerly Twitter), TikTok, YouTube #FF0000, LinkedIn #0A66C2, WhatsApp #25D366 and Telegram #26A5E4, then many more.

    Brand colors table with Facebook, Instagram, X, TikTok, YouTube, LinkedIn and WhatsApp
    Brand colors with search

Which Palette for What?

PaletteFrom #BC1ACBGood for
Complementary#29CB1AOne strong accent: a button or a badge that must stand out
Analogous#631ACB, #CB1A82Calm designs, gradients, illustrations
Triadic#CBBC1A, #1ACBBCPlayful designs; let one color lead and use the others sparingly
Split complementary#82CB1A, #1ACB64Contrast with less clash than the complementary pair
Tetradic#CB641A, #29CB1A, #1A82CBCharts and dashboards that need four clearly different colors
Monochromatic / tints & shades#F8E8FA … #2F0733Backgrounds, borders, hover states, text in the same family

Contrast in One Minute

Contrast ratio compares how light two colors are, from 1:1 (the same) to 21:1 (black on white). The WCAG accessibility guidelines ask for:

Our three tests make it concrete: #BC1ACB on white reached 5.06:1 (AA passes, AAA normal text does not), on dark red #661A1A only 2.40:1, and on grey-pink #AD9494 just 1.79:1. Two colors can look very different and still be too close in lightness to read comfortably.

Good to Know

Follow ToolTiny for short tutorials

One-minute clips on converting, repairing and editing documents, images and text.

Tips for Better Color Choices

Find your color code now

Pick, paste or upload, then copy HEX, RGB, HSL or CMYK. Free, no sign-up.

Open Color Picker

Related ToolTiny Tools

Frequently Asked Questions

How do I find the HEX code of a color?
Open the color picker, click or drag inside the color square and choose the hue on the rainbow bar. The HEX code appears at once in the HEX box, together with RGB, HSL and CMYK, and each has a Copy button.
How do I convert HEX to RGB, HSL or CMYK?
Type or paste the HEX code into the HEX box. In our example #BC1ACB became rgb(188, 26, 203), hsl(295, 77%, 45%) and cmyk(7%, 87%, 0%, 20%) immediately. It also works the other way round: type into the RGB, HSL or CMYK box and the HEX code follows.
How do I make a color palette from one color?
Pick your main color and scroll to Palettes from this color. The tool builds complementary, analogous, triadic, split complementary, tetradic and monochromatic palettes and 11 tints and shades from 50 to 950. Click a swatch to copy it, or copy a whole row as CSS variables, JSON or a Tailwind config.
What contrast ratio do I need for readable text?
WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (level AA), and 7:1 and 4.5:1 for level AAA. In our recording #BC1ACB on white scored 5.06:1, which passes AA for normal text but not AAA.
What does the ≈ name next to the color mean?
It is the closest CSS named color. #9C25A7 and #BC1ACB are not named colors themselves, so the tool shows the nearest one, darkorchid. When your color is exactly a named color, the ≈ sign disappears.
Can I share a color with someone?
Yes. When you pick a color the page address changes to something like color-palette.html#BC1ACB. Click Copy link to this color and send it; the page opens with the same color.
Can I take a color from my screen or a photo?
Yes. Pick from screen uses the browser eyedropper, which works in Chrome, Edge and Opera on a computer. From image lets you upload a picture and click on it to take a color. The picture stays on your device.
Is the CMYK value exact for printing?
No. The tool marks CMYK as approximate because it uses the standard formula. Real print colors depend on paper, ink and the printer's color profile, so ask your printer for a proof for important jobs.
Where do the brand colors come from?
Most values come from the open Simple Icons project; the table notes the exceptions. Brands change their colors from time to time, so for official use check the brand's own guidelines.
Is the tool free and private?
Yes. It is free, needs no sign-up and runs in your browser, so the colors and pictures you use are not uploaded.