#ef1c7e
a balanced, electric magenta / pink · warm · closest name: Deep Pink
At a glance
Every number on this page in one read: what #ef1c7e 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 | #ef1c7e |
| RGB | rgb(239, 28, 126) |
| HSL | hsl(332, 87%, 52%) |
| CMYK | cmyk(0%, 88%, 47%, 6%) |
| LAB | lab(52.6 78.3 1.6) |
| LCH | lch(52.6 78.3 1.2) |
| OKLCH | oklch(0.623 0.241 1.2) |
| Decimal | 15670398 |
| Display P3 | color(display-p3 0.937 0.110 0.494) |
Copy-ready code
/* CSS */
color: #ef1c7e;
background-color: #ef1c7e;
/* Tailwind (arbitrary) */
class="text-[#ef1c7e] bg-[#ef1c7e]"
/* SCSS */
$brand: #ef1c7e;
/* SwiftUI */
Color(red: 0.937, green: 0.110, blue: 0.494)
/* Android */
Color.parseColor("#ef1c7e")
/* Flutter */
Color(0xFFEF1C7E)
/* Python / OpenCV (BGR) */
(126, 28, 239)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. #ef1c7e 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: #FDF2F7;
--brand-100: #FAE5EF;
--brand-200: #F7C4DC;
--brand-300: #F896C3;
--brand-400: #F462A6;
--brand-500: #ef1c7e;
--brand-600: #E51073;
--brand-700: #BF0D60;
--brand-800: #980B4D;
--brand-900: #6E0C3A;
--brand-950: #450824;
--brand: #ef1c7e;
--brand-ink: #000000;
}Colors that work with #ef1c7e
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 #ef1c7e
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 | #1CEF8D | Directly opposite — maximum tension | |
| Analogous left | #EF1CE8 | Neighbour, quieter | |
| Analogous right | #EF241C | Neighbour, quieter | |
| Split-complement 1 | #1CEF24 | Contrast without the clash | |
| Split-complement 2 | #1CE8EF | Contrast without the clash | |
| Triadic 1 | #7EEF1C | Even thirds — balanced and loud | |
| Triadic 2 | #1C7EEF | Even thirds — balanced and loud | |
| Tetradic | #E8EF1C | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ef1c7e text on a black background
contrast 5.14:1
#ef1c7e text on a white background
contrast 4.09:1
CSS3 live lab
The quick brown fox
color: #ef1c7e;
background-color: #ef1c7e;
Glowing headline
text-shadow: 2px 2px 8px #ef1c7e;
Soft neon halo
text-shadow: 0 0 14px rgba(239, 28, 126, 0.45);
box-shadow: 0 12px 32px -8px rgba(239, 28, 126, 0.45);
border: 3px solid #ef1c7e; background: linear-gradient(135deg, #ef1c7e, #EF471C);
Monochromatic scale
Palettes built from #ef1c7e
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: Rose (#ff007f) — ΔE2000 2.8 away, with its history, psychology and brand usage.
#ef1c7e 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.
#ef1c7e, answered
What color is #ef1c7e?
#ef1c7e is a balanced electric magenta / pink, closest to Deep Pink (ΔE2000 4.4). It sits at 332° on the hue wheel with 87% saturation and 52% lightness, which reads as warm.
What is the RGB value of #ef1c7e?
rgb(239, 28, 126) — 239 red, 28 green and 126 blue out of 255, or 93.7% / 11% / 49.4% by channel.
Is #ef1c7e a light or a dark color?
It is a mid-tone. Relative luminance is 0.2069 and perceived brightness is 55%, so black text on it reaches 5.14:1.
Should I use black or white text on #ef1c7e?
Black. It scores 5.14:1 against #ef1c7e, versus 4.09:1 for white — AA at any size.
What is the complementary color of #ef1c7e?
#1CEF8D sits directly opposite on the wheel. Softer options are the split-complements #1CEF24 and #1CE8EF, which give the same contrast with far less vibration.
What colors go well with #ef1c7e?
For interface work: #FAF4F7 as the surface, #EDC0D5 for borders, #9B4B70 for secondary text, #09C33E as an accent and #77083C for hover and pressed states. For a palette, the analogous pair #EF1CE8 and #EF241C stays calm, while #1CEF8D is the loudest partner.
What is #ef1c7e in CMYK for printing?
cmyk(0%, 88%, 47%, 6%). 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 #ef1c7e warm or cool?
Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EF1C31; nudged cooler, #F11ACD.