Skip to content

#f00fba

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

RGB
240, 15, 186
HSL
314°, 88%, 50%
CMYK
0, 94, 23, 6
Luminance
0.2241

At a glance

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

Hex
#f00fba
Hue
314°
magenta / pink
Saturation
88%
electric
Lightness
50%
balanced
Brightness
94%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2241
WCAG relative
Temperature
Neutral
42/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.48:1
Closest name
Deep Pink
ΔE2000 8.7
Where it sits
Hue314° of 360°
Saturation88%
Lightness50%
Temperature
Warm ← → Cool42% 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#f00fba
RGBrgb(240, 15, 186)
HSLhsl(314, 88%, 50%)
CMYKcmyk(0%, 94%, 23%, 6%)
LABlab(54.5 85.9 -31.1)
LCHlch(54.5 91.3 340.1)
OKLCHoklch(0.644 0.273 342.1)
Decimal15732666
Display P3color(display-p3 0.941 0.059 0.729)

Copy-ready code

/* CSS */
color: #f00fba;
background-color: #f00fba;
/* Tailwind (arbitrary) */
class="text-[#f00fba] bg-[#f00fba]"
/* SCSS */
$brand: #f00fba;
/* SwiftUI */
Color(red: 0.941, green: 0.059, blue: 0.729)
/* Android */
Color.parseColor("#f00fba")
/* Flutter */
Color(0xFFF00FBA)
/* Python / OpenCV (BGR) */
(186, 15, 240)

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

Accessibility — WCAG contrast

Aa
#f00fba on white: 3.83:1
AA ✗ fail · AA-large · AAA
Aa
#f00fba on black: 5.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #366DBE
deuteranopia · #7F8EB6
tritanopia · #FF176E

Color scale — 50 to 950

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

#FDF2FA
#FAE5F5
#F8C4EB
#F895E1
#F561D1
#F22CC2
#f00fba
#C00C95
#9A0A77
#6F0C57
#450736
Base = 600Lightest = 50 · #FDF2FADarkest = 950 · #450736
:root {
  --brand-50: #FDF2FA;
  --brand-100: #FAE5F5;
  --brand-200: #F8C4EB;
  --brand-300: #F895E1;
  --brand-400: #F561D1;
  --brand-500: #F22CC2;
  --brand-600: #f00fba;
  --brand-700: #C00C95;
  --brand-800: #9A0A77;
  --brand-900: #6F0C57;
  --brand-950: #450736;
  --brand: #f00fba;
  --brand-ink: #000000;
}

Colors that work with #f00fba

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#FAF4F9
Tinted page background
Border#EDC0E2
Hairlines and dividers
Muted text#9B4B88
Captions on the surface
Accent#0AC408
Second voice, not a rival
Dark variant#78085D
Hover, pressed, headers
Light variant#FDE7F8
Selected rows, tints
Dark surface#241420
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 #f00fba

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#0FF045
Analogous left#B50FF0
Analogous right#F00F4A
Split-complement 1#4AF00F
Split-complement 2#0FF0B5
Triadic 1#BAF00F
Triadic 2#0FBAF0
Tetradic#F0B50F

RGB percentages

Red94.1%
Green5.9%
Blue72.9%

CMYK percentages

Cyan0.0%
Magenta93.8%
Yellow22.5%
Key (black)5.9%

Color previews

#f00fba text on a black background

contrast 5.48:1

Card sample

#f00fba text on a white background

contrast 3.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 15, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 15, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f00fba;
background: linear-gradient(135deg, #f00fba, #F00F24);

Monochromatic scale

Palettes built from #f00fba

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.

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

#f00fba, answered

What color is #f00fba?

#f00fba is a balanced electric magenta / pink, closest to Deep Pink (ΔE2000 8.7). It sits at 314° on the hue wheel with 88% saturation and 50% lightness, which reads as neutral.

What is the RGB value of #f00fba?

rgb(240, 15, 186) — 240 red, 15 green and 186 blue out of 255, or 94.1% / 5.9% / 72.9% by channel.

Is #f00fba a light or a dark color?

It is a mid-tone. Relative luminance is 0.2241 and perceived brightness is 57%, so black text on it reaches 5.48:1.

Should I use black or white text on #f00fba?

Black. It scores 5.48:1 against #f00fba, versus 3.83:1 for white — AA at any size.

What is the complementary color of #f00fba?

#0FF045 sits directly opposite on the wheel. Softer options are the split-complements #4AF00F and #0FF0B5, which give the same contrast with far less vibration.

What colors go well with #f00fba?

For interface work: #FAF4F9 as the surface, #EDC0E2 for borders, #9B4B88 for secondary text, #0AC408 as an accent and #78085D for hover and pressed states. For a palette, the analogous pair #B50FF0 and #F00F4A stays calm, while #0FF045 is the loudest partner.

What is #f00fba in CMYK for printing?

cmyk(0%, 94%, 23%, 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 #f00fba warm or cool?

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

Work with #f00fba in the Color Lab