Skip to content

#e040df

a balanced, vivid magenta / pink · neutral · closest name: Magenta

RGB
224, 64, 223
HSL
300°, 72%, 57%
CMYK
0, 71, 0, 12
Luminance
0.2484

At a glance

Every number on this page in one read: what #e040df is made of, how bright it looks, and which way it leans.

Hex
#e040df
Hue
300°
magenta / pink
Saturation
72%
vivid
Lightness
57%
balanced
Brightness
88%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2484
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.97:1
Closest name
Magenta
ΔE2000 5.2
Where it sits
Hue300° of 360°
Saturation72%
Lightness57%
Temperature
Warm ← → Cool50% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#e040df
RGBrgb(224, 64, 223)
HSLhsl(300, 72%, 57%)
CMYKcmyk(0%, 71%, 0%, 12%)
LABlab(56.9 77.9 -48.6)
LCHlch(56.9 91.9 328.0)
OKLCHoklch(0.662 0.256 328.3)
Decimal14696671
Display P3color(display-p3 0.878 0.251 0.875)

Copy-ready code

/* CSS */
color: #e040df;
background-color: #e040df;
/* Tailwind (arbitrary) */
class="text-[#e040df] bg-[#e040df]"
/* SCSS */
$brand: #e040df;
/* SwiftUI */
Color(red: 0.878, green: 0.251, blue: 0.875)
/* Android */
Color.parseColor("#e040df")
/* Flutter */
Color(0xFFE040DF)
/* Python / OpenCV (BGR) */
(223, 64, 224)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #e040df · 5.97:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.52:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.97:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #e040df as text scores 3.52:1 on white and 5.97:1 on black.

Accessibility — WCAG contrast

Aa
#e040df on white: 3.52:1
AA ✗ fail · AA-large · AAA
Aa
#e040df on black: 5.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #227BE3
deuteranopia · #6C90DB
tritanopia · #E7588C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #e040df 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.

#FCF3FC
#F8E7F8
#F3C9F3
#EF9EEF
#E86EE7
#e040df
#D322D1
#B01CAF
#8C178C
#661565
#400D3F
Base = 500Lightest = 50 · #FCF3FCDarkest = 950 · #400D3F
:root {
  --brand-50: #FCF3FC;
  --brand-100: #F8E7F8;
  --brand-200: #F3C9F3;
  --brand-300: #EF9EEF;
  --brand-400: #E86EE7;
  --brand-500: #e040df;
  --brand-600: #D322D1;
  --brand-700: #B01CAF;
  --brand-800: #8C178C;
  --brand-900: #661565;
  --brand-950: #400D3F;
  --brand: #e040df;
  --brand-ink: #000000;
}

Colors that work with #e040df

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4FA
Tinted page background
Border#EDC0EC
Hairlines and dividers
Muted text#9B4B9A
Captions on the surface
Accent#3EB319
Second voice, not a rival
Dark variant#6E126D
Hover, pressed, headers
Light variant#FBE9FB
Selected rows, tints
Dark surface#241424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #e040df

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
Use with care
  • 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#40E041
Analogous left#9140E0
Analogous right#E0408F
Split-complement 1#8FE040
Split-complement 2#40E091
Triadic 1#DFE040
Triadic 2#40DFE0
Tetradic#E09140

RGB percentages

Red87.8%
Green25.1%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta71.4%
Yellow0.4%
Key (black)12.2%

Color previews

#e040df text on a black background

contrast 5.97:1

Card sample

#e040df text on a white background

contrast 3.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #e040df;
Background color
Panel with #e040df background
background-color: #e040df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #e040df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(224, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(224, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e040df;
background: linear-gradient(135deg, #e040df, #E04074);

Monochromatic scale

Palettes built from #e040df

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.

#e040df in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#e040df, answered

What color is #e040df?

#e040df is a balanced vivid magenta / pink, closest to Magenta (ΔE2000 5.2). It sits at 300° on the hue wheel with 72% saturation and 57% lightness, which reads as neutral.

What is the RGB value of #e040df?

rgb(224, 64, 223) — 224 red, 64 green and 223 blue out of 255, or 87.8% / 25.1% / 87.5% by channel.

Is #e040df a light or a dark color?

It is a mid-tone. Relative luminance is 0.2484 and perceived brightness is 60%, so black text on it reaches 5.97:1.

Should I use black or white text on #e040df?

Black. It scores 5.97:1 against #e040df, versus 3.52:1 for white — AA at any size.

What is the complementary color of #e040df?

#40E041 sits directly opposite on the wheel. Softer options are the split-complements #8FE040 and #40E091, which give the same contrast with far less vibration.

What colors go well with #e040df?

For interface work: #FAF4FA as the surface, #EDC0EC for borders, #9B4B9A for secondary text, #3EB319 as an accent and #6E126D for hover and pressed states. For a palette, the analogous pair #9140E0 and #E0408F stays calm, while #40E041 is the loudest partner.

What is #e040df in CMYK for printing?

cmyk(0%, 71%, 0%, 12%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #e040df warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E040A4; nudged cooler, #A73EE2.

Work with #e040df in the Color Lab