HEX Color Codes, Picker & Color Palettes
Pick a color or enter a HEX code to explore RGB, HSL, accessible text contrast, lighter and darker shades, color harmonies, and ready-to-use palettes.
Explore any HEX color
Type a 3- or 6-digit HEX code, or choose a color visually.
Enter 3 or 6 hexadecimal digits, with or without #. Example: #2A6DF4.
Invalid HEX code. The results still show your previous color. Enter 3 or 6 HEX digits or press Escape to restore.
Bright blue.
Color codes and accessibility
Values update instantly when you choose a new color. See the full profile for blue #2A6DF4 as a worked example.
Color values
Text contrast (WCAG)
Compare white and black text against your selected color. Check the ratio before choosing text and background colors.
Color shades and tints
Select a swatch to use that shade in the picker above.
Color harmonies
Explore complementary, analogous, triadic, split-complementary and tetradic color schemes.
Color vision simulation
Approximate previews of three forms of color vision deficiency. Do not rely on color alone to communicate meaning.
Copy CSS or JSON color tokens
Codes are generated in your browser from the selected HEX color. The Tailwind example targets v3.
Ready-to-use color palettes
Explore hand-picked five-color combinations. Copy a complete palette, or pick a swatch to see its HEX and RGB values above. Browse 72 curated palettes with HEX search.
What is a HEX color code?
A HEX color code describes the red, green and blue channels in six hexadecimal digits: #RRGGBB. For example, #2A6DF4 represents red 42, green 109 and blue 244.
Three-digit shorthand expands by repeating each digit: #F80 is the same as #FF8800. Use the picker above to convert a HEX color into RGB and HSL, compare text contrast, and build harmonious palettes.
How to choose a usable palette
- Start with a primary color and choose a neutral background.
- Check text contrast at the intended font size. WCAG AA commonly requires at least 4.5:1 for regular text.
- Use accent colors selectively for buttons and highlights, and test your design in both light and dark contexts.
Need a larger color directory or specialized color tools? They are available in the Vietnamese color directory (Tiếng Việt) and Vietnamese tools section (Tiếng Việt). For English tools, use the color converter, color picker, color wheel, contrast checker image color picker, or gradient generator, the palette generator, the color mixer, or the color blindness simulator. For multiple text/background pairs, use the Color Contrast Matrix. Try the Color Scale Generator for 11-step shades, or build light/dark roles with the Brand Color System. Preview CTA buttons, text, borders and the same palette in both themes with the Website Color Visualizer.
Frequently asked questions
Does HEX differ from RGB?
Both describe red, green and blue channel values. HEX uses hexadecimal digits; RGB uses decimal values from 0 to 255.
Can I use these palettes for commercial projects?
Color combinations themselves can be used as inspiration, but always check brand identity, legibility and any project-specific requirements.
What is a good contrast ratio for text?
For typical text, WCAG AA generally requires a contrast ratio of at least 4.5:1. Large text has a different minimum.
Are the colors identical on every screen?
No. Display calibration, brightness and color profiles can affect appearance. Test important colors on the actual devices and media you plan to use.
Ready to implement your palette? Export CSS, Tailwind, SCSS or JSON tokens for your website.
Testing text colors? Use our WCAG color contrast checker for normal and large text.