#ec08af
a balanced, electric magenta / pink · warm · closest name: Deep Pink
At a glance
Every number on this page in one read: what #ec08af 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 | #ec08af |
| RGB | rgb(236, 8, 175) |
| HSL | hsl(316, 93%, 48%) |
| CMYK | cmyk(0%, 97%, 26%, 8%) |
| LAB | lab(53.1 84.4 -27.0) |
| LCH | lch(53.1 88.6 342.3) |
| OKLCH | oklch(0.631 0.267 344.3) |
| Decimal | 15468719 |
| Display P3 | color(display-p3 0.925 0.031 0.686) |
Copy-ready code
/* CSS */
color: #ec08af;
background-color: #ec08af;
/* Tailwind (arbitrary) */
class="text-[#ec08af] bg-[#ec08af]"
/* SCSS */
$brand: #ec08af;
/* SwiftUI */
Color(red: 0.925, green: 0.031, blue: 0.686)
/* Android */
Color.parseColor("#ec08af")
/* Flutter */
Color(0xFFEC08AF)
/* Python / OpenCV (BGR) */
(175, 8, 236)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. #ec08af 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: #FDF2FA;
--brand-100: #FBE4F5;
--brand-200: #F9C2EB;
--brand-300: #FB93DF;
--brand-400: #F95CCF;
--brand-500: #F826BF;
--brand-600: #ec08af;
--brand-700: #C50792;
--brand-800: #9E0575;
--brand-900: #720956;
--brand-950: #470535;
--brand: #ec08af;
--brand-ink: #000000;
}Colors that work with #ec08af
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 #ec08af
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 | #08EC45 | Directly opposite — maximum tension | |
| Analogous left | #B708EC | Neighbour, quieter | |
| Analogous right | #EC083D | Neighbour, quieter | |
| Split-complement 1 | #3DEC08 | Contrast without the clash | |
| Split-complement 2 | #08ECB7 | Contrast without the clash | |
| Triadic 1 | #AFEC08 | Even thirds — balanced and loud | |
| Triadic 2 | #08AFEC | Even thirds — balanced and loud | |
| Tetradic | #ECB708 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ec08af text on a black background
contrast 5.22:1
#ec08af text on a white background
contrast 4.02:1
CSS3 live lab
The quick brown fox
color: #ec08af;
background-color: #ec08af;
Glowing headline
text-shadow: 2px 2px 8px #ec08af;
Soft neon halo
text-shadow: 0 0 14px rgba(236, 8, 175, 0.45);
box-shadow: 0 12px 32px -8px rgba(236, 8, 175, 0.45);
border: 3px solid #ec08af; background: linear-gradient(135deg, #ec08af, #EC0817);
Monochromatic scale
Palettes built from #ec08af
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 7.8 away, with its history, psychology and brand usage.
#ec08af 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.
#ec08af, answered
What color is #ec08af?
#ec08af is a balanced electric magenta / pink, closest to Deep Pink (ΔE2000 7.8). It sits at 316° on the hue wheel with 93% saturation and 48% lightness, which reads as warm.
What is the RGB value of #ec08af?
rgb(236, 8, 175) — 236 red, 8 green and 175 blue out of 255, or 92.5% / 3.1% / 68.6% by channel.
Is #ec08af a light or a dark color?
It is a mid-tone. Relative luminance is 0.2110 and perceived brightness is 56%, so black text on it reaches 5.22:1.
Should I use black or white text on #ec08af?
Black. It scores 5.22:1 against #ec08af, versus 4.02:1 for white — AA at any size.
What is the complementary color of #ec08af?
#08EC45 sits directly opposite on the wheel. Softer options are the split-complements #3DEC08 and #08ECB7, which give the same contrast with far less vibration.
What colors go well with #ec08af?
For interface work: #FAF4F9 as the surface, #EDC0E1 for borders, #9B4B85 for secondary text, #03C907 as an accent and #7B045B for hover and pressed states. For a palette, the analogous pair #B708EC and #EC083D stays calm, while #08EC45 is the loudest partner.
What is #ec08af in CMYK for printing?
cmyk(0%, 97%, 26%, 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 #ec08af warm or cool?
Warm — it scores 41 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC085B; nudged cooler, #D706EE.