#eb02a2
a balanced, electric magenta / pink · warm · closest name: Deep Pink
At a glance
Every number on this page in one read: what #eb02a2 is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #eb02a2 |
| RGB | rgb(235, 2, 162) |
| HSL | hsl(319, 98%, 47%) |
| CMYK | cmyk(0%, 99%, 31%, 8%) |
| LAB | lab(52.2 83.3 -20.6) |
| LCH | lch(52.2 85.8 346.1) |
| OKLCH | oklch(0.623 0.261 348.0) |
| Decimal | 15401634 |
| Display P3 | color(display-p3 0.922 0.008 0.635) |
Copy-ready code
/* CSS */
color: #eb02a2;
background-color: #eb02a2;
/* Tailwind (arbitrary) */
class="text-[#eb02a2] bg-[#eb02a2]"
/* SCSS */
$brand: #eb02a2;
/* SwiftUI */
Color(red: 0.922, green: 0.008, blue: 0.635)
/* Android */
Color.parseColor("#eb02a2")
/* Flutter */
Color(0xFFEB02A2)
/* Python / OpenCV (BGR) */
(162, 2, 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. #eb02a2 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FDF1FA;
--brand-100: #FCE3F4;
--brand-200: #FBC1E9;
--brand-300: #FE90DB;
--brand-400: #FE58CA;
--brand-500: #FD21B8;
--brand-600: #eb02a2;
--brand-700: #CA028B;
--brand-800: #A20170;
--brand-900: #750652;
--brand-950: #490433;
--brand: #eb02a2;
--brand-ink: #000000;
}Colors that work with #eb02a2
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 #eb02a2
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 | #02EB4B | Directly opposite — maximum tension | |
| Analogous left | #C002EB | Neighbour, quieter | |
| Analogous right | #EB022E | Neighbour, quieter | |
| Split-complement 1 | #2EEB02 | Contrast without the clash | |
| Split-complement 2 | #02EBC0 | Contrast without the clash | |
| Triadic 1 | #A2EB02 | Even thirds — balanced and loud | |
| Triadic 2 | #02A2EB | Even thirds — balanced and loud | |
| Tetradic | #EBC002 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#eb02a2 text on a black background
contrast 5.06:1
#eb02a2 text on a white background
contrast 4.15:1
CSS3 live lab
The quick brown fox
color: #eb02a2;
background-color: #eb02a2;
Glowing headline
text-shadow: 2px 2px 8px #eb02a2;
Soft neon halo
text-shadow: 0 0 14px rgba(235, 2, 162, 0.45);
box-shadow: 0 12px 32px -8px rgba(235, 2, 162, 0.45);
border: 3px solid #eb02a2; background: linear-gradient(135deg, #eb02a2, #EB0207);
Monochromatic scale
Palettes built from #eb02a2
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: Deep Pink (#ff1493) — ΔE2000 6.4 away, with its history, psychology and brand usage.
#eb02a2 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.
#eb02a2, answered
What color is #eb02a2?
#eb02a2 is a balanced electric magenta / pink, closest to Deep Pink (ΔE2000 6.4). It sits at 319° on the hue wheel with 98% saturation and 47% lightness, which reads as warm.
What is the RGB value of #eb02a2?
rgb(235, 2, 162) — 235 red, 2 green and 162 blue out of 255, or 92.2% / 0.8% / 63.5% by channel.
Is #eb02a2 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2031 and perceived brightness is 55%, so black text on it reaches 5.06:1.
Should I use black or white text on #eb02a2?
Black. It scores 5.06:1 against #eb02a2, versus 4.15:1 for white — AA at any size.
What is the complementary color of #eb02a2?
#02EB4B sits directly opposite on the wheel. Softer options are the split-complements #2EEB02 and #02EBC0, which give the same contrast with far less vibration.
What colors go well with #eb02a2?
For interface work: #FAF4F8 as the surface, #EDC0DF for borders, #9B4B82 for secondary text, #00CC0D as an accent and #7E0157 for hover and pressed states. For a palette, the analogous pair #C002EB and #EB022E stays calm, while #02EB4B is the loudest partner.
What is #eb02a2 in CMYK for printing?
cmyk(0%, 99%, 31%, 8%). 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 #eb02a2 warm or cool?
Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EB024D; nudged cooler, #E100ED.