#7F40C7 color
The hex color #7F40C7 is a moderate violet.
In the RGB color model it is made of 49.8% red, 25.1% green and 78% blue (127, 64, 199).
Its hue angle is 268°, with 55% saturation and 52% lightness. For print, the CMYK equivalent is 36% cyan, 68% magenta, 0% yellow and 22% black.
The closest named color is Purple Rain (#7442C8), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.07:1).
#7F40C7 color codes
| HEX | #7F40C7 | |
|---|---|---|
| RGB | rgb(127, 64, 199) | |
| RGB percent | rgb(49.8%, 25.1%, 78%) | |
| HSL | hsl(268, 55%, 52%) | |
| HSV / HSB | hsv(268, 68%, 78%) | |
| CMYK | cmyk(36%, 68%, 0%, 22%) | |
| CIE LAB | lab(41.69, 53.08, -60.1) | |
| CIE LCH | lch(41.69, 80.18, 311.45) | |
| CIE XYZ | xyz(20.892, 12.302, 55.296) | |
| Decimal | 8339655 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #7F40C7, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #7F40C7 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.46:1 | Fail | Fail | Pass |
| Sample text | 6.07:1 | Pass | Fail | Pass |
| #7F40C7 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.07:1 | Pass | Fail | Pass |
| Sample text | 3.46:1 | Fail | Fail | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #7F40C7 looks to people with the most common types of color vision deficiency.
#0062cbProtanopia
no red cones#0062c4Deuteranopia
no green cones#6f5f7eTritanopia
no blue cones#626262Achromatopsia
no color vision
CSS examples
.background { background-color: #7f40c7; }
.text { color: #7f40c7; }
.border { border: 2px solid #7f40c7; }
.transparent { background-color: rgb(127 64 199 / 50%); }
.gradient { background: linear-gradient(to right, #7f40c7, #c340c7); }
Similar colors
#7442c8Purple Rain#7736d9Hokkaido Lavender#9632ceDreamscape Purple#8822ccLilac Spring#9932ccDark Orchid#7737aaShredder Lavender#7733aaPurple Pristine#6633bbPurple Emperor
Closest common color name: Blue Violet.
Questions
- What color is #7F40C7?
- #7F40C7 is a moderate violet, closest to the named color Purple Rain. It belongs to the purple family of colors.
- What is the RGB value of #7F40C7?
- The RGB value is 127, 64, 199: 127 red, 64 green and 199 blue on a 0 to 255 scale.
- What is the complementary color of #7F40C7?
- The complementary color is #88C740, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #7F40C7?
- White text. Black text has a contrast ratio of 3.46:1 and white text 6.07:1. WCAG asks for at least 4.5:1 for normal text.