More
More
#FF2E97 colour
#FF2E97 is a vivid magenta close to CSS deeppink: RGB 255, 46, 151, HSL 330, 100%, 59%. Black text passes AA (6.09:1). Tints, shades and colour harmonies.
- Nearest CSS name
deeppink#ff1493 (not an exact match)- Described as
- a vivid magenta
- Red, green, blue
- 255, 46, 151
- Web safe
- No
- Luminance
- 0.2545 (WCAG relative luminance, 0 is black, 1 is white)
Colour codes
| HEX | #ff2e97 | |
|---|---|---|
| RGB | rgb(255, 46, 151) | |
| RGB (percent) | rgb(100% 18% 59.2%) | |
| HSL | hsl(329.9, 100%, 59%) | |
| HSV / HSB | hsv(329.9, 82%, 100%) | |
| HWB | hwb(329.9 18% 0%) | |
| CMYK (naive) | cmyk(0%, 82%, 41%, 0%) | |
| CIELAB (D50) | lab(58.12% 79.76 -4.28) | |
| OKLCH | oklch(66.67% 0.2492 356.75) | |
| Decimal | 16723607 |
CMYK here is the plain formula with no colour profile, so treat it as a starting point; a printer's profile gives the real ink values. CIELAB uses a D50 white point, as CSS lab() does. HSV is not a CSS function, so it is shown for design apps only.
Contrast with white and black text
| Text | Ratio | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White | 3.45:1 | Fail | Pass | Fail | Fail |
| Black | 6.09:1 | Pass | Pass | Fail | Pass |
Black text is the better choice on #FF2E97 (6.09:1). Ratios use the WCAG 2.2 formula; large text means at least 24px, or 18.66px bold. Check another pair.
Tints and shades
Mixed with white, then with black, in ten even steps (straight sRGB mixing, as most design tools do).
Colour harmonies
Hue turned around the HSL colour wheel, saturation and lightness kept.
How it looks with colour blindness
Simulated with the Machado, Oliveira and Fernandes (2009) matrices at full severity, applied in linear RGB; achromatopsia shows the colour's luminance as grey. Milder forms (protanomaly, deuteranomaly) are far more common and shift colours less. Never use colour as the only way to carry meaning.
CSS
| Text colour | color: #ff2e97; | |
|---|---|---|
| Background | background-color: #ff2e97; | |
| Border | border: 1px solid #ff2e97; | |
| Half transparent | background-color: rgb(255 46 151 / 50%); | |
| Custom property | --colour-main: #ff2e97; | |
| Gradient to a darker shade | background: linear-gradient(135deg, #ff2e97, #991c5b); | |
| Gradient from a lighter tint | background: linear-gradient(180deg, #ff82c1, #ff2e97); | |
| Text on this colour | background-color: #ff2e97; color: #000; |
Similar named colours
deeppink#ff1493, distance 1.7hotpink#ff69b4, distance 8.3palevioletred#db7093, distance 11.2mediumvioletred#c71585, distance 12orchid#da70d6, distance 12.8crimson#dc143c, distance 13.7#2eff96Complement of #FF2E97
Distance is measured in OKLab, scaled by 100; under about 2 is hard to tell apart side by side.
Convert #FF2E97 to other formats · Build a palette from it · Check contrast · All named colours
Colour names from CSS Color Module Level 4. Palette values from the Tailwind CSS v3 default palette (MIT licence) and the Material Design 2014 colour palette as published in Material Design Lite (Apache License 2.0). All other values are calculated from the hex code.