Color #7F40EC Color / Colour Code #7F40EC
This page shows the hex color code for color #7f40ec (#7F40EC). The colour is a purple tone with 82% saturation and 59% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.
Color Conversions
Accessibility Contrast
WCAG contrast ratios for #7F40EC against common backgrounds.
Complementary Colors
#7F40EC paired with its color wheel opposite for maximum contrast.
Analogous Colors
Hues at 232, 262, and 292 degrees for harmonious combinations.
Triadic Palette
Three colors at 262, 22, and 142 degrees.
Color Palettes Using #7F40EC
Five shades at lightness levels 15% through 85% while keeping hue at 262 and saturation at 82%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.
Adjacent hues from 262 to 307 degrees create a warm, unified palette. This analogous scheme works for marketing materials, seasonal campaigns, and any design that needs visual warmth without clashing colors.
Combines the base color at hue 262 with its complement at 82 and two adjacent cool tones. This split-complementary approach provides strong visual contrast while remaining more balanced than a pure complementary scheme.
Five evenly spaced hues at 40% saturation and 80% lightness. Pastels are gentle on the eyes and work well for dashboards, onboarding screens, category tags, and any interface where multiple distinct colors are needed without visual aggression.
Shades & Tints of #7F40EC
Lightness variations at hue 262 and 82% saturation.
CSS Gradients with #7F40EC
Design Use Cases for #7F40EC
Vibrant Brand Color
#7F40EC has a strong 82% saturation that makes it ideal for brand identity elements. Use it for logos, primary call-to-action buttons, hero section accents, and marketing materials where visual impact matters. This saturation level is eye-catching without being harsh.
Soft Accent & Highlight
With 59% lightness, #7F40EC has a softer, more approachable quality. It works well for hover states, subtle highlights, progress indicators, and secondary UI elements. This lightness range is particularly effective for tag backgrounds and status indicators.
Creativity & Premium Positioning
#7F40EC falls in the purple spectrum (hue 262). Purple communicates creativity, wisdom, and luxury. It is effective for premium product highlights, creative portfolio accents, meditation app interfaces, and rewards program branding. Purple occupies a unique space between the energy of red and the calm of blue.
Gradient Pairing
Create a gradient from #7F40EC (hue 262) to its complement at hue 82. For a subtler effect, try pairing with an analogous color at hue 292. Use CSS: background: linear-gradient(135deg, #7f40ec, #adec41);
CSS Code for #7F40EC
Similar Colors
Colors visually similar to #7F40EC based on RGB, lightness, and hue variations.
Use This Color in Design Tools
Apply #7F40EC across image editing and color design tools.
About Color #7F40EC (#7F40EC)
#7F40EC is a purple color (colour) with RGB channel values of 127 red, 64 green, and 236 blue. The blue channel is dominant by a ratio of 3.7:1 over the weakest channel. In HSL terms, the hue sits at 262 degrees with 82% saturation and 59% lightness, placing it in the cool range of the colour spectrum.
The perceived brightness of #7F40EC is 102/255 using the ITU-R BT.601 luma formula (0.299R + 0.587G + 0.114B). This appears dark to the human eye, so pair it with light text for adequate readability. For print production, the CMYK equivalent is 46% cyan, 73% magenta, 0% yellow, and 7% key (black).
The WCAG contrast ratio of #7F40EC against white is 5.46:1 and against black is 3.85:1. This meets the AA requirement (4.5:1) for normal text on white. For AAA compliance, consider darkening to at least 41% lightness.
The complementary colour #ADEC41 creates maximum visual tension when paired with #7F40EC. For more harmonious color combinations, use the analogous colours #4158EC and #D541EC, which sit 30 degrees on either side of the hue wheel. To build a complete design system, start with the monochromatic scale above for consistent shade variations, then add one complementary or triadic accent for interactive elements.
How to Explore Color #7F40EC
- Enter your color value in HEX format.
- The tool converts it to RGB, HSL, CMYK format in real time.
- Copy the converted value to your clipboard.
What is HEX to RGB, HSL, CMYK color conversion
Converting from HEX to RGB, HSL, CMYK translates a color value between two different color models. Different color models are used in web design (HEX, RGB), print (CMYK), and color theory (HSL, HSV).
Related Tools & Colors
Frequently Asked Questions
- What color / colour is #7F40EC?
- #7F40EC is Color #7F40EC, a purple color (colour) with RGB(127, 64, 236), HSL(262, 82%, 59%), and CMYK(46%, 73%, 0%, 7%). Its perceived brightness is 102/255.
- Is #7F40EC accessible for text?
- Against white, #7F40EC has a contrast ratio of 5.46:1 (passes AA for normal text). Against black, it has 3.85:1 (fails AA). Use the contrast checker tool for custom background pairings.
- What colours pair well with #7F40EC?
- The complementary colour is #ADEC41 (hue 82). For subtle color combinations, use analogous colours #4158EC and #D541EC. The triadic palette adds #EC8041 and #41EC80 for vibrant variety.
- How do I use #7F40EC in CSS?
- Use any format: color: #7f40ec; or rgb(127, 64, 236); or hsl(262, 82%, 59%). For CSS custom properties: --color-primary: 262 82% 59%; then use it as hsl(var(--color-primary)).
- Is this color / colour explorer free?
- Yes, completely free with no signup required. All colour calculations run in your browser. You can explore any valid hex color code, not just the pre-generated palette.