#e22eee
a balanced, electric magenta / pink · neutral · closest name: Magenta
At a glance
Every number on this page in one read: what #e22eee is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #e22eee |
| RGB | rgb(226, 46, 238) |
| HSL | hsl(296, 85%, 56%) |
| CMYK | cmyk(5%, 81%, 0%, 7%) |
| LAB | lab(56.4 85.5 -57.9) |
| LCH | lch(56.4 103.3 325.9) |
| OKLCH | oklch(0.662 0.283 325.2) |
| Decimal | 14823150 |
| Display P3 | color(display-p3 0.886 0.180 0.933) |
Copy-ready code
/* CSS */
color: #e22eee;
background-color: #e22eee;
/* Tailwind (arbitrary) */
class="text-[#e22eee] bg-[#e22eee]"
/* SCSS */
$brand: #e22eee;
/* SwiftUI */
Color(red: 0.886, green: 0.180, blue: 0.933)
/* Android */
Color.parseColor("#e22eee")
/* Flutter */
Color(0xFFE22EEE)
/* Python / OpenCV (BGR) */
(238, 46, 226)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #e22eee is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FCF2FC;
--brand-100: #F9E5FA;
--brand-200: #F4C5F7;
--brand-300: #F197F7;
--brand-400: #EA63F2;
--brand-500: #e22eee;
--brand-600: #D612E2;
--brand-700: #B20FBD;
--brand-800: #8E0C97;
--brand-900: #670D6D;
--brand-950: #400844;
--brand: #e22eee;
--brand-ink: #000000;
}Colors that work with #e22eee
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #e22eee
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #3AEE2E | Directly opposite — maximum tension | |
| Analogous left | #822EEE | Neighbour, quieter | |
| Analogous right | #EE2E9A | Neighbour, quieter | |
| Split-complement 1 | #9AEE2E | Contrast without the clash | |
| Split-complement 2 | #2EEE82 | Contrast without the clash | |
| Triadic 1 | #EEE22E | Even thirds — balanced and loud | |
| Triadic 2 | #2EEEE2 | Even thirds — balanced and loud | |
| Tetradic | #EE822E | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#e22eee text on a black background
contrast 5.86:1
#e22eee text on a white background
contrast 3.58:1
CSS3 live lab
The quick brown fox
color: #e22eee;
background-color: #e22eee;
Glowing headline
text-shadow: 2px 2px 8px #e22eee;
Soft neon halo
text-shadow: 0 0 14px rgba(226, 46, 238, 0.45);
box-shadow: 0 12px 32px -8px rgba(226, 46, 238, 0.45);
border: 3px solid #e22eee; background: linear-gradient(135deg, #e22eee, #EE2E7A);
Monochromatic scale
Palettes built from #e22eee
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Magenta (#ff00ff) — ΔE2000 4.4 away, with its history, psychology and brand usage.
#e22eee in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#e22eee, answered
What color is #e22eee?
#e22eee is a balanced electric magenta / pink, closest to Magenta (ΔE2000 4.4). It sits at 296° on the hue wheel with 85% saturation and 56% lightness, which reads as neutral.
What is the RGB value of #e22eee?
rgb(226, 46, 238) — 226 red, 46 green and 238 blue out of 255, or 88.6% / 18% / 93.3% by channel.
Is #e22eee a light or a dark color?
It is a mid-tone. Relative luminance is 0.2430 and perceived brightness is 59%, so black text on it reaches 5.86:1.
Should I use black or white text on #e22eee?
Black. It scores 5.86:1 against #e22eee, versus 3.58:1 for white — AA at any size.
What is the complementary color of #e22eee?
#3AEE2E sits directly opposite on the wheel. Softer options are the split-complements #9AEE2E and #2EEE82, which give the same contrast with far less vibration.
What colors go well with #e22eee?
For interface work: #FAF4FA as the surface, #EAC0ED for borders, #964B9B for secondary text, #44C10B as an accent and #6F0A76 for hover and pressed states. For a palette, the analogous pair #822EEE and #EE2E9A stays calm, while #3AEE2E is the loudest partner.
What is #e22eee in CMYK for printing?
cmyk(5%, 81%, 0%, 7%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #e22eee warm or cool?
Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EE2EB3; nudged cooler, #9C2CF0.