Skip to content

#f84af2

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

RGB
248, 74, 242
HSL
302°, 93%, 63%
CMYK
0, 70, 2, 3
Luminance
0.3126

At a glance

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

Hex
#f84af2
Hue
302°
magenta / pink
Saturation
93%
electric
Lightness
63%
balanced
Brightness
97%
HSV value
Perceived
66%
weighted brightness
Luminance
0.3126
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
7.25:1
Closest name
Magenta
ΔE2000 3.9
Where it sits
Hue302° of 360°
Saturation93%
Lightness63%
Temperature
Warm ← → Cool49% 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#f84af2
RGBrgb(248, 74, 242)
HSLhsl(302, 93%, 63%)
CMYKcmyk(0%, 70%, 2%, 3%)
LABlab(62.7 82.7 -49.9)
LCHlch(62.7 96.6 328.9)
OKLCHoklch(0.714 0.271 329.5)
Decimal16272114
Display P3color(display-p3 0.973 0.290 0.949)

Copy-ready code

/* CSS */
color: #f84af2;
background-color: #f84af2;
/* Tailwind (arbitrary) */
class="text-[#f84af2] bg-[#f84af2]"
/* SCSS */
$brand: #f84af2;
/* SwiftUI */
Color(red: 0.973, green: 0.290, blue: 0.949)
/* Android */
Color.parseColor("#f84af2")
/* Flutter */
Color(0xFFF84AF2)
/* Python / OpenCV (BGR) */
(242, 74, 248)

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

Accessibility — WCAG contrast

Aa
#f84af2 on white: 2.90:1
AA ✗ fail · AA-large · AAA
Aa
#f84af2 on black: 7.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3389F7
deuteranopia · #7CA0EE
tritanopia · #FF629A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f84af2 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDF2FD
#FBE4FA
#F9C2F7
#FB93F7
#f84af2
#F727EF
#EC09E4
#C408BE
#9D0698
#71096E
#470645
Base = 400Lightest = 50 · #FDF2FDDarkest = 950 · #470645
:root {
  --brand-50: #FDF2FD;
  --brand-100: #FBE4FA;
  --brand-200: #F9C2F7;
  --brand-300: #FB93F7;
  --brand-400: #f84af2;
  --brand-500: #F727EF;
  --brand-600: #EC09E4;
  --brand-700: #C408BE;
  --brand-800: #9D0698;
  --brand-900: #71096E;
  --brand-950: #470645;
  --brand: #f84af2;
  --brand-ink: #000000;
}

Colors that work with #f84af2

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#EDC0EB
Hairlines and dividers
Muted text#9B4B98
Captions on the surface
Accent#2EC903
Second voice, not a rival
Dark variant#7B0577
Hover, pressed, headers
Light variant#FEE6FD
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 #f84af2

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

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#4AF850
Analogous left#A74AF8
Analogous right#F84A9B
Split-complement 1#9BF84A
Split-complement 2#4AF8A7
Triadic 1#F2F84A
Triadic 2#4AF2F8
Tetradic#F8A74A

RGB percentages

Red97.3%
Green29.0%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta70.2%
Yellow2.4%
Key (black)2.7%

Color previews

#f84af2 text on a black background

contrast 7.25:1

Card sample

#f84af2 text on a white background

contrast 2.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(248, 74, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(248, 74, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f84af2;
background: linear-gradient(135deg, #f84af2, #F84A7E);

Monochromatic scale

Palettes built from #f84af2

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.

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

#f84af2, answered

What color is #f84af2?

#f84af2 is a balanced electric magenta / pink, closest to Magenta (ΔE2000 3.9). It sits at 302° on the hue wheel with 93% saturation and 63% lightness, which reads as neutral.

What is the RGB value of #f84af2?

rgb(248, 74, 242) — 248 red, 74 green and 242 blue out of 255, or 97.3% / 29% / 94.9% by channel.

Is #f84af2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3126 and perceived brightness is 66%, so black text on it reaches 7.25:1.

Should I use black or white text on #f84af2?

Black. It scores 7.25:1 against #f84af2, versus 2.90:1 for white — AAA at any size.

What is the complementary color of #f84af2?

#4AF850 sits directly opposite on the wheel. Softer options are the split-complements #9BF84A and #4AF8A7, which give the same contrast with far less vibration.

What colors go well with #f84af2?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B98 for secondary text, #2EC903 as an accent and #7B0577 for hover and pressed states. For a palette, the analogous pair #A74AF8 and #F84A9B stays calm, while #4AF850 is the loudest partner.

What is #f84af2 in CMYK for printing?

cmyk(0%, 70%, 2%, 3%). 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 #f84af2 warm or cool?

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

Work with #f84af2 in the Color Lab