Professional Color Tools
Free online color converter and picker with professional features for designers and developers.
Color Picker
Select any color visually with our interactive color picker tool.
#165DFF
RGB(22, 93, 255)
Hex to RGB
Convert hexadecimal color codes to RGB values instantly.
RGB to Hex
Convert RGB color values to hexadecimal codes instantly.
Conversion History
Color Conversion Formulas
Hex to RGB Conversion
A hex color is a 6-character string (plus #) representing RGB values in hexadecimal (base-16) format.
Hex format: #RRGGBB
R = (first hex pair) → decimal
G = (second hex pair) → decimal
B = (third hex pair) → decimal
Example: #165DFF
RR = 16 → 22, GG = 5D → 93, BB = FF → 255
RGB to Hex Conversion
RGB values (0-255) are converted to two-digit hexadecimal strings and combined.
Hex value = (R << 16) | (G << 8) | B
Then convert to hex string with leading zeros
Result format: #RRGGBB
Example: RGB(22, 93, 255)
22 → 16, 93 → 5D, 255 → FF → #165DFF
Complete Color Theory Encyclopedia
Introduction to Color Theory
Color is the visual perceptual property corresponding in humans to the categories called red, green, blue, and others. Color derives from the spectrum of light (distribution of light power versus wavelength) interacting in the eye with the spectral sensitivities of the light receptors. Color categories and physical specifications of color are also associated with objects or materials based on their physical properties such as light absorption, reflection, or emission spectra.
The understanding of color has evolved over thousands of years, from ancient philosophers to modern scientists and designers. Today, color theory is essential in various fields including art, design, marketing, psychology, and technology. The digital age has introduced new color models and systems that allow precise representation and manipulation of colors across different devices and platforms.
History of Color Science
The scientific investigation of color began with Aristotle, who developed the first known theory of color. He postulated that God sent sunlight from the heavens through a celestial prism, and that the four elements (earth, air, fire, and water) each corresponded to a color. This theory persisted for nearly 2,000 years.
In the 17th century, Isaac Newton conducted experiments with light and prisms, discovering that white light is composed of all colors of the spectrum. Newton's work established that color is a property of light rather than objects, laying the foundation for modern color science. He arranged colors in a circle, creating the first color wheel.
The 19th century brought significant advancements in color theory. Johann Wolfgang von Goethe proposed a color theory based on human perception rather than physics. Thomas Young developed the trichromatic theory of color vision, later expanded by Hermann von Helmholtz. This theory suggested that the human eye contains three types of color receptors, sensitive to red, green, and blue light.
The 20th century saw the development of modern color models and systems. The RGB (Red, Green, Blue) model was established for additive color mixing in electronic displays, while CMYK (Cyan, Magenta, Yellow, Key/Black) was developed for subtractive color mixing in printing. The HSL (Hue, Saturation, Lightness) and HSV (Hue, Saturation, Value) models were created to align more closely with human perception of color.
Color Models in Digital Design
Digital design and development rely on several standardized color models, each serving specific purposes:
RGB Color Model
RGB is an additive color model where red, green, and blue light are combined in various ways to reproduce a broad array of colors. The name comes from the initials of the three additive primary colors: red, green, and blue. This is the primary color model used in electronic displays, including computer monitors, televisions, and mobile devices.
In the RGB model, each color component (red, green, and blue) is represented by an integer value ranging from 0 to 255. When all components are set to 0, the result is black. When all components are set to 255, the result is white. Equal values of red, green, and blue produce shades of gray.
RGB is device-dependent, meaning that different devices may perceive or display the same RGB values differently. This is why color calibration is important for maintaining color consistency across different displays.
Hexadecimal Color Representation
Hexadecimal color codes are the most common way to represent RGB colors in web design and development. A hex color code is a six-digit hexadecimal number preceded by a hash symbol (#). Each pair of digits represents the intensity of red, green, and blue components respectively.
Hexadecimal is a base-16 numbering system that uses digits 0-9 and letters A-F (or a-f) to represent values from 0 to 15. Each color component (red, green, blue) ranges from 00 (0 in decimal) to FF (255 in decimal).
For example, the hex color #FF0000 represents pure red, with the red component at maximum intensity (FF or 255) and green and blue components at minimum intensity (00 or 0). Similarly, #00FF00 is pure green and #0000FF is pure blue.
Shorthand hexadecimal notation is also commonly used, where each digit is duplicated to form the six-digit code. For example, #F00 is equivalent to #FF0000, and #123 is equivalent to #112233.
HSL and HSV Color Models
HSL (Hue, Saturation, Lightness) and HSV (Hue, Saturation, Value) are alternative representations of the RGB color model, designed to be more intuitive and user-friendly than the raw RGB model. These models align more closely with the way humans perceive and describe color.
Hue represents the color type (such as red, green, or blue) and is measured as an angle on a color wheel from 0 to 360 degrees. Saturation represents the intensity or purity of the color, ranging from 0% (grayscale) to 100% (fully saturated). Lightness (in HSL) or Value (in HSV) represents the brightness of the color, ranging from 0% (black) to 100% (white).
The key difference between HSL and HSV is in how they represent brightness. HSL's lightness component corresponds to the perceived lightness of a color, while HSV's value component corresponds to the brightness relative to the maximum brightness of the most saturated color.
CMYK Color Model
CMYK is a subtractive color model used in color printing. The name comes from the four ink colors used: cyan, magenta, yellow, and key (black). In the CMYK model, colors are produced by subtracting (absorbing) certain wavelengths of light from white light.
Unlike RGB, which is additive, CMYK works by partially or completely masking colors on a white background. The ink reduces the light that would otherwise be reflected. Where all inks are applied, the result is black. Where no inks are applied, the result is the white of the paper.
Digital designers working on print projects must convert their RGB or hex colors to CMYK to ensure accurate color reproduction in printed materials. This conversion is important because the RGB color gamut is larger than CMYK, and some colors that can be displayed on screen cannot be accurately reproduced with printing inks.
Color Psychology and Meaning
Color psychology is the study of how colors affect human behavior, emotions, and perceptions. Different colors evoke different psychological responses, and these responses can be influenced by culture, personal experience, and context. Understanding color psychology is crucial for effective design, marketing, and branding.
Red
Red is a powerful color associated with energy, passion, love, danger, and excitement. It is the most emotionally intense color and can increase heart rate, blood pressure, and respiration. Red is attention-grabbing and often used to signal importance or urgency. In marketing, red can stimulate appetite and create a sense of urgency, making it popular for sales and promotions.
Blue
Blue is associated with calmness, stability, trust, wisdom, and professionalism. It is the most universally preferred color across cultures and genders. Blue has a calming effect, lowering heart rate and body temperature. It is widely used in corporate branding, technology, and healthcare to convey trust and reliability. Dark blues convey stability and formality, while lighter blues are more calming and serene.
Green
Green represents nature, growth, health, harmony, and freshness. It is the easiest color on the eye and can improve vision and reduce anxiety. Green is associated with balance and stability. In marketing, green is used to promote eco-friendly products, health, and wellness. It can also signify wealth and prosperity in some cultures.
Yellow
Yellow is the color of happiness, optimism, sunshine, and warmth. It is the most visible color and captures attention more than any other color. Yellow stimulates mental activity and generates muscle energy. However, pure yellow can also cause eye strain and anxiety in large quantities. In design, yellow is used to highlight important information and create a cheerful atmosphere.
Purple
Purple has long been associated with royalty, luxury, power, and sophistication. It combines the stability of blue and the energy of red. Purple is also associated with creativity, wisdom, and spirituality. Light purples are soft and romantic, while dark purples convey luxury and wealth. Purple is rare in nature, making it appear exotic and unique.
Orange
Orange combines the energy of red and the happiness of yellow. It is associated with enthusiasm, creativity, warmth, and determination. Orange is attention-grabbing without being as aggressive as red. It stimulates appetite and promotes socialization. In design, orange is used to create a sense of fun and energy, making it popular for youthful brands and products.
Black
Black is associated with power, elegance, sophistication, mystery, and formality. It can be both serious and intimidating. Black is often used to convey luxury and exclusivity in high-end products. In design, black provides a strong contrast and can make other colors stand out. Too much black can create a sense of heaviness and negativity.
White
White represents purity, innocence, cleanliness, and simplicity. It is often associated with new beginnings and perfection. White creates a sense of space and can make small areas appear larger. In design, white space is crucial for readability and creating elegant, minimalist aesthetics. White is versatile and works well with all other colors.
Gray
Gray is the color of neutrality, balance, compromise, and sophistication. It is a timeless, practical color that is often used as a background. Light grays are minimalist and modern, while dark grays are sophisticated and elegant. Gray can be warm or cool depending on its undertones, making it extremely versatile in design.
Color Harmony and Combination
Color harmony refers to the aesthetically pleasing arrangement of colors in a design or composition. Harmonious color combinations create visual balance and appeal to the viewer. Several established color harmony principles guide designers in creating effective color schemes:
Complementary Colors
Complementary colors are pairs of colors that are opposite each other on the color wheel. These combinations provide high contrast and maximum vibrancy. Examples include red-green, blue-orange, and yellow-purple. Complementary color schemes are bold and attention-grabbing, making them ideal for highlighting important elements.
Analogous Colors
Analogous color schemes use colors that are adjacent to each other on the color wheel. These combinations are harmonious and pleasing to the eye, creating a serene and comfortable feel. Analogous schemes often use one dominant color, a second supporting color, and a third accent color. They are commonly found in nature and create cohesive, unified designs.
Triadic Colors
Triadic color schemes use three colors that are evenly spaced around the color wheel, forming a triangle. These combinations are vibrant and balanced, even when using pale or unsaturated versions of the hues. Triadic schemes offer high contrast while retaining harmony. The primary and secondary colors (red, yellow, blue) form the most common triadic color scheme.
Split Complementary Colors
The split complementary scheme is a variation of the complementary color scheme. Instead of using the direct complement of a color, it uses the two colors adjacent to its complement. This scheme offers the same high contrast as complementary colors but with less tension. Split complementary color schemes are versatile and difficult to get wrong.
Tetradic (Double Complementary) Colors
Tetradic color schemes use four colors arranged into two complementary pairs. This rich color scheme offers plenty of possibilities for variation. The tetradic scheme is bold and vibrant but can be difficult to balance. When using this scheme, it's best to let one color dominate and use the others as accents, paying attention to the balance between warm and cool colors.
Monochromatic Colors
Monochromatic color schemes use variations in lightness and saturation of a single color. This scheme is clean and elegant, easy on the eyes, and extremely versatile. Monochromatic schemes are always harmonious and work well for minimalist designs. They create a sense of sophistication and calmness.
Color in Web Design and Development
Color is one of the most critical elements of effective web design. It establishes mood, conveys brand personality, improves usability, and guides user attention. When used strategically, color can significantly enhance the user experience and achieve specific design goals.
Web Accessibility and Color
Web accessibility ensures that websites are usable by people of all abilities and disabilities. Color plays a crucial role in accessibility, particularly for users with visual impairments, including color blindness. The Web Content Accessibility Guidelines (WCAG) provide standards for color contrast and use.
Key accessibility considerations include:
- Minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text
- Never conveying information using color alone
- Providing sufficient contrast between foreground and background
- Considering color blindness in color choices
Color Consistency and Branding
Consistent use of color is essential for effective branding. Establishing a brand color palette and using it consistently across all digital platforms helps build brand recognition and trust. Most successful brands use 2-3 primary colors and 3-5 secondary colors in their brand guidelines.
CSS variables and design systems help maintain color consistency across large websites and applications. By defining colors in a single location and reusing them throughout the codebase, developers can ensure visual consistency and make global color changes efficiently.
Responsive Color and Dark Mode
Modern web design requires consideration of different viewing environments, including light and dark modes. Dark mode has become increasingly popular, reducing eye strain in low-light conditions and saving battery life on OLED screens. Effective color systems must work well in both light and dark contexts.
CSS custom properties (variables) make it easy to implement responsive color systems that adapt to light/dark mode preferences. By defining different color values for light and dark themes, designers can ensure optimal readability and aesthetics in all viewing conditions.
Future of Color Technology
Color technology continues to evolve rapidly, with new advancements expanding the possibilities of color representation and interaction. Emerging technologies are pushing the boundaries of how we create, display, and experience color in digital environments.
Wide Color Gamut (WCG) displays can reproduce a wider range of colors than traditional screens, providing more vibrant and lifelike images. High Dynamic Range (HDR) technology enhances both color and brightness, creating more realistic and immersive visual experiences.
Artificial intelligence and machine learning are revolutionizing color selection and palette generation. AI tools can analyze images, extract color schemes, suggest harmonious combinations, and even predict color trends. These technologies are making professional color design more accessible to non-experts.
As virtual and augmented reality technologies advance, new approaches to color management will be necessary to ensure consistent and accurate color representation across these immersive platforms. The future of color technology promises even more vibrant, accurate, and personalized color experiences.