Skip to content

#fb7eb2

a light, electric magenta / pink · warm · closest name: Hot Pink

RGB
251, 126, 178
HSL
335°, 94%, 74%
CMYK
0, 50, 29, 2
Luminance
0.3865

At a glance

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

Hex
#fb7eb2
Hue
335°
magenta / pink
Saturation
94%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
70%
weighted brightness
Luminance
0.3865
WCAG relative
Temperature
Warm
31/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
8.73:1
Closest name
Hot Pink
ΔE2000 4.4
Where it sits
Hue335° of 360°
Saturation94%
Lightness74%
Temperature
Warm ← → Cool31% cool

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

Every format

HEX#fb7eb2
RGBrgb(251, 126, 178)
HSLhsl(335, 94%, 74%)
CMYKcmyk(0%, 50%, 29%, 2%)
LABlab(68.5 53.2 -5.1)
LCHlch(68.5 53.4 354.5)
OKLCHoklch(0.749 0.162 355.5)
Decimal16481970
Display P3color(display-p3 0.984 0.494 0.698)

Copy-ready code

/* CSS */
color: #fb7eb2;
background-color: #fb7eb2;
/* Tailwind (arbitrary) */
class="text-[#fb7eb2] bg-[#fb7eb2]"
/* SCSS */
$brand: #fb7eb2;
/* SwiftUI */
Color(red: 0.984, green: 0.494, blue: 0.698)
/* Android */
Color.parseColor("#fb7eb2")
/* Flutter */
Color(0xFFFB7EB2)
/* Python / OpenCV (BGR) */
(178, 126, 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 #fb7eb2 · 8.73:1
Use #000000AAA at every size.
Aa
White text · 2.41:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.73:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #fb7eb2 as text scores 2.41:1 on white and 8.73:1 on black.

Accessibility — WCAG contrast

Aa
#fb7eb2 on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#fb7eb2 on black: 8.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8F99B4
deuteranopia · #B0B0AF
tritanopia · #FF7791

Color scale — 50 to 950

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

#FDF2F6
#FBE4EE
#FAC2D9
#fb7eb2
#FA5C9E
#F8257D
#ED0767
#C60656
#9E0545
#720834
#470521
Base = 300Lightest = 50 · #FDF2F6Darkest = 950 · #470521
:root {
  --brand-50: #FDF2F6;
  --brand-100: #FBE4EE;
  --brand-200: #FAC2D9;
  --brand-300: #fb7eb2;
  --brand-400: #FA5C9E;
  --brand-500: #F8257D;
  --brand-600: #ED0767;
  --brand-700: #C60656;
  --brand-800: #9E0545;
  --brand-900: #720834;
  --brand-950: #470521;
  --brand: #fb7eb2;
  --brand-ink: #000000;
}

Colors that work with #fb7eb2

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#FAF4F7
Tinted page background
Border#EDC0D2
Hairlines and dividers
Muted text#9B4B6C
Captions on the surface
Accent#02CA45
Second voice, not a rival
Dark variant#7C0436
Hover, pressed, headers
Light variant#FEE6F0
Selected rows, tints
Dark surface#24141B
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 #fb7eb2

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
  • Card and section backgrounds
  • 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
  • White text placed on it
  • 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#7EFBC7
Analogous left#FB7EF1
Analogous right#FB887E
Split-complement 1#7EFB88
Split-complement 2#7EF1FB
Triadic 1#B2FB7E
Triadic 2#7EB2FB
Tetradic#F1FB7E

RGB percentages

Red98.4%
Green49.4%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta49.8%
Yellow29.1%
Key (black)1.6%

Color previews

#fb7eb2 text on a black background

contrast 8.73:1

Card sample

#fb7eb2 text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fb7eb2

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.

#fb7eb2 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#fb7eb2, answered

What color is #fb7eb2?

#fb7eb2 is a light electric magenta / pink, closest to Hot Pink (ΔE2000 4.4). It sits at 335° on the hue wheel with 94% saturation and 74% lightness, which reads as warm.

What is the RGB value of #fb7eb2?

rgb(251, 126, 178) — 251 red, 126 green and 178 blue out of 255, or 98.4% / 49.4% / 69.8% by channel.

Is #fb7eb2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3865 and perceived brightness is 70%, so black text on it reaches 8.73:1.

Should I use black or white text on #fb7eb2?

Black. It scores 8.73:1 against #fb7eb2, versus 2.41:1 for white — AAA at any size.

What is the complementary color of #fb7eb2?

#7EFBC7 sits directly opposite on the wheel. Softer options are the split-complements #7EFB88 and #7EF1FB, which give the same contrast with far less vibration.

What colors go well with #fb7eb2?

For interface work: #FAF4F7 as the surface, #EDC0D2 for borders, #9B4B6C for secondary text, #02CA45 as an accent and #7C0436 for hover and pressed states. For a palette, the analogous pair #FB7EF1 and #FB887E stays calm, while #7EFBC7 is the loudest partner.

What is #fb7eb2 in CMYK for printing?

cmyk(0%, 50%, 29%, 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 #fb7eb2 warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FB7E84; nudged cooler, #FC7DE1.

Work with #fb7eb2 in the Color Lab