Skip to content

#ef2fd7

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

RGB
239, 47, 215
HSL
308°, 86%, 56%
CMYK
0, 80, 10, 6
Luminance
0.2529

At a glance

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

Hex
#ef2fd7
Hue
308°
magenta / pink
Saturation
86%
electric
Lightness
56%
balanced
Brightness
94%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2529
WCAG relative
Temperature
Neutral
46/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
6.06:1
Closest name
Magenta
ΔE2000 5.3
Where it sits
Hue308° of 360°
Saturation86%
Lightness56%
Temperature
Warm ← → Cool46% 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#ef2fd7
RGBrgb(239, 47, 215)
HSLhsl(308, 86%, 56%)
CMYKcmyk(0%, 80%, 10%, 6%)
LABlab(57.4 84.4 -43.3)
LCHlch(57.4 94.8 332.9)
OKLCHoklch(0.669 0.273 334.2)
Decimal15675351
Display P3color(display-p3 0.937 0.184 0.843)

Copy-ready code

/* CSS */
color: #ef2fd7;
background-color: #ef2fd7;
/* Tailwind (arbitrary) */
class="text-[#ef2fd7] bg-[#ef2fd7]"
/* SCSS */
$brand: #ef2fd7;
/* SwiftUI */
Color(red: 0.937, green: 0.184, blue: 0.843)
/* Android */
Color.parseColor("#ef2fd7")
/* Flutter */
Color(0xFFEF2FD7)
/* Python / OpenCV (BGR) */
(215, 47, 239)

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 #ef2fd7 · 6.06:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.47:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.06:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ef2fd7 as text scores 3.47:1 on white and 6.06:1 on black.

Accessibility — WCAG contrast

Aa
#ef2fd7 on white: 3.47:1
AA ✗ fail · AA-large · AAA
Aa
#ef2fd7 on black: 6.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2978DB
deuteranopia · #7893D3
tritanopia · #FA4584

Color scale — 50 to 950

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

#FDF2FB
#FAE5F7
#F7C5F1
#F797EB
#F363E1
#ef2fd7
#E312C9
#BD0FA8
#980C86
#6D0D61
#44083D
Base = 500Lightest = 50 · #FDF2FBDarkest = 950 · #44083D
:root {
  --brand-50: #FDF2FB;
  --brand-100: #FAE5F7;
  --brand-200: #F7C5F1;
  --brand-300: #F797EB;
  --brand-400: #F363E1;
  --brand-500: #ef2fd7;
  --brand-600: #E312C9;
  --brand-700: #BD0FA8;
  --brand-800: #980C86;
  --brand-900: #6D0D61;
  --brand-950: #44083D;
  --brand: #ef2fd7;
  --brand-ink: #000000;
}

Colors that work with #ef2fd7

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#EDC0E7
Hairlines and dividers
Muted text#9B4B91
Captions on the surface
Accent#22C10B
Second voice, not a rival
Dark variant#760969
Hover, pressed, headers
Light variant#FDE7FA
Selected rows, tints
Dark surface#241422
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 #ef2fd7

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#2FEF47
Analogous left#A72FEF
Analogous right#EF2F77
Split-complement 1#77EF2F
Split-complement 2#2FEFA7
Triadic 1#D7EF2F
Triadic 2#2FD7EF
Tetradic#EFA72F

RGB percentages

Red93.7%
Green18.4%
Blue84.3%

CMYK percentages

Cyan0.0%
Magenta80.3%
Yellow10.0%
Key (black)6.3%

Color previews

#ef2fd7 text on a black background

contrast 6.06:1

Card sample

#ef2fd7 text on a white background

contrast 3.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(239, 47, 215, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(239, 47, 215, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ef2fd7;
background: linear-gradient(135deg, #ef2fd7, #EF2F57);

Monochromatic scale

Palettes built from #ef2fd7

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.

#ef2fd7 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ef2fd7, answered

What color is #ef2fd7?

#ef2fd7 is a balanced electric magenta / pink, closest to Magenta (ΔE2000 5.3). It sits at 308° on the hue wheel with 86% saturation and 56% lightness, which reads as neutral.

What is the RGB value of #ef2fd7?

rgb(239, 47, 215) — 239 red, 47 green and 215 blue out of 255, or 93.7% / 18.4% / 84.3% by channel.

Is #ef2fd7 a light or a dark color?

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

Should I use black or white text on #ef2fd7?

Black. It scores 6.06:1 against #ef2fd7, versus 3.47:1 for white — AA at any size.

What is the complementary color of #ef2fd7?

#2FEF47 sits directly opposite on the wheel. Softer options are the split-complements #77EF2F and #2FEFA7, which give the same contrast with far less vibration.

What colors go well with #ef2fd7?

For interface work: #FAF4FA as the surface, #EDC0E7 for borders, #9B4B91 for secondary text, #22C10B as an accent and #760969 for hover and pressed states. For a palette, the analogous pair #A72FEF and #EF2F77 stays calm, while #2FEF47 is the loudest partner.

What is #ef2fd7 in CMYK for printing?

cmyk(0%, 80%, 10%, 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 #ef2fd7 warm or cool?

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

Work with #ef2fd7 in the Color Lab