#FF40FF color
The hex color #FF40FF is a light, vivid magenta.
In the RGB color model it is made of 100% red, 25.1% green and 100% blue (255, 64, 255).
Its hue angle is 300°, with 100% saturation and 63% lightness. For print, the CMYK equivalent is 0% cyan, 75% magenta, 0% yellow and 0% black.
The closest named color is Magenta (#FF00FF), a difference of 3.2 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 7.43:1).
#FF40FF color codes
| HEX | #FF40FF | |
|---|---|---|
| RGB | rgb(255, 64, 255) | |
| RGB percent | rgb(100%, 25.1%, 100%) | |
| HSL | hsl(300, 100%, 63%) | |
| HSV / HSB | hsv(300, 75%, 100%) | |
| CMYK | cmyk(0%, 75%, 0%, 0%) | |
| CIE LAB | lab(63.47, 89.04, -55.81) | |
| CIE LCH | lch(63.47, 105.09, 327.92) | |
| CIE XYZ | xyz(61.123, 32.151, 97.575) | |
| Decimal | 16728319 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #FF40FF, 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 #FF40FF | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.43:1 | Pass | Pass | Pass |
| Sample text | 2.83:1 | Fail | Fail | Fail |
| #FF40FF as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.83:1 | Fail | Fail | Fail |
| Sample text | 7.43:1 | Pass | Pass | 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 #FF40FF looks to people with the most common types of color vision deficiency.
#058affProtanopia
no red cones#77a2faDeuteranopia
no green cones#ff609eTritanopia
no blue cones#9a9a9aAchromatopsia
no color vision
CSS examples
.background { background-color: #ff40ff; }
.text { color: #ff40ff; }
.border { border: 2px solid #ff40ff; }
.transparent { background-color: rgb(255 64 255 / 50%); }
.gradient { background: linear-gradient(to right, #ff40ff, #ff40a0); }
Similar colors
#ff00ffMagenta#ff00ffFuchsia#fb5ffcViolet Pink#ff55eePink Party#ff0ff3Barbara#ff10f0Neon Pink#ff66ffPink Flamingo#dd55ffFlaming Flamingo
Questions
- What color is #FF40FF?
- #FF40FF is a light, vivid magenta, closest to the named color Magenta. It belongs to the purple family of colors.
- What is the RGB value of #FF40FF?
- The RGB value is 255, 64, 255: 255 red, 64 green and 255 blue on a 0 to 255 scale.
- What is the complementary color of #FF40FF?
- The complementary color is #40FF40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #FF40FF?
- Black text. Black text has a contrast ratio of 7.43:1 and white text 2.83:1. WCAG asks for at least 4.5:1 for normal text.