#eb2df2
a balanced, electric magenta / pink · neutral · closest name: Magenta
At a glance
Every number on this page in one read: what #eb2df2 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 | #eb2df2 |
| RGB | rgb(235, 45, 242) |
| HSL | hsl(298, 88%, 56%) |
| CMYK | cmyk(3%, 81%, 0%, 5%) |
| LAB | lab(58.0 88.0 -57.5) |
| LCH | lch(58.0 105.1 326.8) |
| OKLCH | oklch(0.677 0.290 326.5) |
| Decimal | 15412722 |
| Display P3 | color(display-p3 0.922 0.176 0.949) |
Copy-ready code
/* CSS */
color: #eb2df2;
background-color: #eb2df2;
/* Tailwind (arbitrary) */
class="text-[#eb2df2] bg-[#eb2df2]"
/* SCSS */
$brand: #eb2df2;
/* SwiftUI */
Color(red: 0.922, green: 0.176, blue: 0.949)
/* Android */
Color.parseColor("#eb2df2")
/* Flutter */
Color(0xFFEB2DF2)
/* Python / OpenCV (BGR) */
(242, 45, 235)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. #eb2df2 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: #FCF2FD;
--brand-100: #FAE5FA;
--brand-200: #F6C4F8;
--brand-300: #F595F8;
--brand-400: #F061F5;
--brand-500: #eb2df2;
--brand-600: #DF0EE6;
--brand-700: #BA0CC0;
--brand-800: #950A9A;
--brand-900: #6B0B6F;
--brand-950: #430745;
--brand: #eb2df2;
--brand-ink: #000000;
}Colors that work with #eb2df2
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 #eb2df2
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 | #34F22D | Directly opposite — maximum tension | |
| Analogous left | #892DF2 | Neighbour, quieter | |
| Analogous right | #F22D96 | Neighbour, quieter | |
| Split-complement 1 | #96F22D | Contrast without the clash | |
| Split-complement 2 | #2DF289 | Contrast without the clash | |
| Triadic 1 | #F2EB2D | Even thirds — balanced and loud | |
| Triadic 2 | #2DF2EB | Even thirds — balanced and loud | |
| Tetradic | #F2892D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#eb2df2 text on a black background
contrast 6.19:1
#eb2df2 text on a white background
contrast 3.39:1
CSS3 live lab
The quick brown fox
color: #eb2df2;
background-color: #eb2df2;
Glowing headline
text-shadow: 2px 2px 8px #eb2df2;
Soft neon halo
text-shadow: 0 0 14px rgba(235, 45, 242, 0.45);
box-shadow: 0 12px 32px -8px rgba(235, 45, 242, 0.45);
border: 3px solid #eb2df2; background: linear-gradient(135deg, #eb2df2, #F22D76);
Monochromatic scale
Palettes built from #eb2df2
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 2.9 away, with its history, psychology and brand usage.
#eb2df2 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.
#eb2df2, answered
What color is #eb2df2?
#eb2df2 is a balanced electric magenta / pink, closest to Magenta (ΔE2000 2.9). It sits at 298° on the hue wheel with 88% saturation and 56% lightness, which reads as neutral.
What is the RGB value of #eb2df2?
rgb(235, 45, 242) — 235 red, 45 green and 242 blue out of 255, or 92.2% / 17.6% / 94.9% by channel.
Is #eb2df2 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2595 and perceived brightness is 61%, so black text on it reaches 6.19:1.
Should I use black or white text on #eb2df2?
Black. It scores 6.19:1 against #eb2df2, versus 3.39:1 for white — AA at any size.
What is the complementary color of #eb2df2?
#34F22D sits directly opposite on the wheel. Softer options are the split-complements #96F22D and #2DF289, which give the same contrast with far less vibration.
What colors go well with #eb2df2?
For interface work: #FAF4FA as the surface, #EBC0ED for borders, #984B9B for secondary text, #3DC408 as an accent and #740778 for hover and pressed states. For a palette, the analogous pair #892DF2 and #F22D96 stays calm, while #34F22D is the loudest partner.
What is #eb2df2 in CMYK for printing?
cmyk(3%, 81%, 0%, 5%). 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 #eb2df2 warm or cool?
Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F22DB1; nudged cooler, #A32BF4.