Skip to content

#fb3df7

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

RGB
251, 61, 247
HSL
301°, 96%, 61%
CMYK
0, 76, 2, 2
Luminance
0.3056

At a glance

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

Hex
#fb3df7
Hue
301°
magenta / pink
Saturation
96%
electric
Lightness
61%
balanced
Brightness
98%
HSV value
Perceived
66%
weighted brightness
Luminance
0.3056
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
7.11:1
Closest name
Magenta
ΔE2000 2.7
Where it sits
Hue301° of 360°
Saturation96%
Lightness61%
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#fb3df7
RGBrgb(251, 61, 247)
HSLhsl(301, 96%, 61%)
CMYKcmyk(0%, 76%, 2%, 2%)
LABlab(62.1 87.9 -53.5)
LCHlch(62.1 102.9 328.7)
OKLCHoklch(0.712 0.288 329.0)
Decimal16465399
Display P3color(display-p3 0.984 0.239 0.969)

Copy-ready code

/* CSS */
color: #fb3df7;
background-color: #fb3df7;
/* Tailwind (arbitrary) */
class="text-[#fb3df7] bg-[#fb3df7]"
/* SCSS */
$brand: #fb3df7;
/* SwiftUI */
Color(red: 0.984, green: 0.239, blue: 0.969)
/* Android */
Color.parseColor("#fb3df7")
/* Flutter */
Color(0xFFFB3DF7)
/* Python / OpenCV (BGR) */
(247, 61, 251)

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

Accessibility — WCAG contrast

Aa
#fb3df7 on white: 2.95:1
AA ✗ fail · AA-large · AAA
Aa
#fb3df7 on black: 7.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #1186FC
deuteranopia · #769FF2
tritanopia · #FF5B99

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #fb3df7 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
#FCE4FB
#FAC1F9
#FD91FA
#FC5AF8
#fb3df7
#F005EB
#C804C4
#A0039D
#730771
#480447
Base = 500Lightest = 50 · #FDF1FDDarkest = 950 · #480447
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FCE4FB;
  --brand-200: #FAC1F9;
  --brand-300: #FD91FA;
  --brand-400: #FC5AF8;
  --brand-500: #fb3df7;
  --brand-600: #F005EB;
  --brand-700: #C804C4;
  --brand-800: #A0039D;
  --brand-900: #730771;
  --brand-950: #480447;
  --brand: #fb3df7;
  --brand-ink: #000000;
}

Colors that work with #fb3df7

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#9B4B99
Captions on the surface
Accent#2ECC00
Second voice, not a rival
Dark variant#7D037A
Hover, pressed, headers
Light variant#FEE6FE
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 #fb3df7

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#3DFB41
Analogous left#A03DFB
Analogous right#FB3D98
Split-complement 1#98FB3D
Split-complement 2#3DFBA0
Triadic 1#F7FB3D
Triadic 2#3DF7FB
Tetradic#FBA03D

RGB percentages

Red98.4%
Green23.9%
Blue96.9%

CMYK percentages

Cyan0.0%
Magenta75.7%
Yellow1.6%
Key (black)1.6%

Color previews

#fb3df7 text on a black background

contrast 7.11:1

Card sample

#fb3df7 text on a white background

contrast 2.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fb3df7

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.

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

#fb3df7, answered

What color is #fb3df7?

#fb3df7 is a balanced electric magenta / pink, closest to Magenta (ΔE2000 2.7). It sits at 301° on the hue wheel with 96% saturation and 61% lightness, which reads as neutral.

What is the RGB value of #fb3df7?

rgb(251, 61, 247) — 251 red, 61 green and 247 blue out of 255, or 98.4% / 23.9% / 96.9% by channel.

Is #fb3df7 a light or a dark color?

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

Should I use black or white text on #fb3df7?

Black. It scores 7.11:1 against #fb3df7, versus 2.95:1 for white — AAA at any size.

What is the complementary color of #fb3df7?

#3DFB41 sits directly opposite on the wheel. Softer options are the split-complements #98FB3D and #3DFBA0, which give the same contrast with far less vibration.

What colors go well with #fb3df7?

For interface work: #FAF4FA as the surface, #EDC0EC for borders, #9B4B99 for secondary text, #2ECC00 as an accent and #7D037A for hover and pressed states. For a palette, the analogous pair #A03DFB and #FB3D98 stays calm, while #3DFB41 is the loudest partner.

What is #fb3df7 in CMYK for printing?

cmyk(0%, 76%, 2%, 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 #fb3df7 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 #FB3DB1; nudged cooler, #BA3BFD.

Work with #fb3df7 in the Color Lab