Skip to content

#ef1afb

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

RGB
239, 26, 251
HSL
297°, 97%, 54%
CMYK
5, 90, 0, 2
Luminance
0.2605

At a glance

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

Hex
#ef1afb
Hue
297°
magenta / pink
Saturation
97%
electric
Lightness
54%
balanced
Brightness
98%
HSV value
Perceived
62%
weighted brightness
Luminance
0.2605
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
6.21:1
Closest name
Magenta
ΔE2000 2.4
Where it sits
Hue297° of 360°
Saturation97%
Lightness54%
Temperature
Warm ← → Cool52% 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#ef1afb
RGBrgb(239, 26, 251)
HSLhsl(297, 97%, 54%)
CMYKcmyk(5%, 90%, 0%, 2%)
LABlab(58.1 93.2 -62.3)
LCHlch(58.1 112.1 326.2)
OKLCHoklch(0.680 0.308 325.6)
Decimal15670011
Display P3color(display-p3 0.937 0.102 0.984)

Copy-ready code

/* CSS */
color: #ef1afb;
background-color: #ef1afb;
/* Tailwind (arbitrary) */
class="text-[#ef1afb] bg-[#ef1afb]"
/* SCSS */
$brand: #ef1afb;
/* SwiftUI */
Color(red: 0.937, green: 0.102, blue: 0.984)
/* Android */
Color.parseColor("#ef1afb")
/* Flutter */
Color(0xFFEF1AFB)
/* Python / OpenCV (BGR) */
(251, 26, 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 #ef1afb · 6.21:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.38:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.21:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ef1afb as text scores 3.38:1 on white and 6.21:1 on black.

Accessibility — WCAG contrast

Aa
#ef1afb on white: 3.38:1
AA ✗ fail · AA-large · AAA
Aa
#ef1afb on black: 6.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007CFF
deuteranopia · #5C94F6
tritanopia · #F55296

Color scale — 50 to 950

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

#FDF1FD
#FAE4FC
#F7C1FB
#F791FD
#F35AFC
#ef1afb
#E404F1
#BE03C9
#9803A0
#6E0774
#450448
Base = 500Lightest = 50 · #FDF1FDDarkest = 950 · #450448
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FAE4FC;
  --brand-200: #F7C1FB;
  --brand-300: #F791FD;
  --brand-400: #F35AFC;
  --brand-500: #ef1afb;
  --brand-600: #E404F1;
  --brand-700: #BE03C9;
  --brand-800: #9803A0;
  --brand-900: #6E0774;
  --brand-950: #450448;
  --brand: #ef1afb;
  --brand-ink: #000000;
}

Colors that work with #ef1afb

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#EAC0ED
Hairlines and dividers
Muted text#974B9B
Captions on the surface
Accent#3ECC00
Second voice, not a rival
Dark variant#77027D
Hover, pressed, headers
Light variant#FDE6FF
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 #ef1afb

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#26FB1A
Analogous left#7E1AFB
Analogous right#FB1A96
Split-complement 1#96FB1A
Split-complement 2#1AFB7E
Triadic 1#FBEF1A
Triadic 2#1AFBEF
Tetradic#FB7E1A

RGB percentages

Red93.7%
Green10.2%
Blue98.4%

CMYK percentages

Cyan4.8%
Magenta89.6%
Yellow0.0%
Key (black)1.6%

Color previews

#ef1afb text on a black background

contrast 6.21:1

Card sample

#ef1afb text on a white background

contrast 3.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ef1afb

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.

#ef1afb 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.

#ef1afb, answered

What color is #ef1afb?

#ef1afb is a balanced electric magenta / pink, closest to Magenta (ΔE2000 2.4). It sits at 297° on the hue wheel with 97% saturation and 54% lightness, which reads as neutral.

What is the RGB value of #ef1afb?

rgb(239, 26, 251) — 239 red, 26 green and 251 blue out of 255, or 93.7% / 10.2% / 98.4% by channel.

Is #ef1afb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2605 and perceived brightness is 62%, so black text on it reaches 6.21:1.

Should I use black or white text on #ef1afb?

Black. It scores 6.21:1 against #ef1afb, versus 3.38:1 for white — AA at any size.

What is the complementary color of #ef1afb?

#26FB1A sits directly opposite on the wheel. Softer options are the split-complements #96FB1A and #1AFB7E, which give the same contrast with far less vibration.

What colors go well with #ef1afb?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #974B9B for secondary text, #3ECC00 as an accent and #77027D for hover and pressed states. For a palette, the analogous pair #7E1AFB and #FB1A96 stays calm, while #26FB1A is the loudest partner.

What is #ef1afb in CMYK for printing?

cmyk(5%, 90%, 0%, 2%). 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 #ef1afb warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FB1AB4; nudged cooler, #9D18FD.

Work with #ef1afb in the Color Lab