Skip to content

#f0baf6

a light, electric magenta / pink · neutral · closest name: Plum

RGB
240, 186, 246
HSL
294°, 77%, 85%
CMYK
2, 24, 0, 4
Luminance
0.6030

At a glance

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

Hex
#f0baf6
Hue
294°
magenta / pink
Saturation
77%
electric
Lightness
85%
light
Brightness
96%
HSV value
Perceived
83%
weighted brightness
Luminance
0.6030
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
13.06:1
Closest name
Plum
ΔE2000 6.3
Where it sits
Hue294° of 360°
Saturation77%
Lightness85%
Temperature
Warm ← → Cool53% 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#f0baf6
RGBrgb(240, 186, 246)
HSLhsl(294, 77%, 85%)
CMYKcmyk(2%, 24%, 0%, 4%)
LABlab(82.0 29.4 -22.2)
LCHlch(82.0 36.8 322.9)
OKLCHoklch(0.856 0.100 323.1)
Decimal15776502
Display P3color(display-p3 0.941 0.729 0.965)

Copy-ready code

/* CSS */
color: #f0baf6;
background-color: #f0baf6;
/* Tailwind (arbitrary) */
class="text-[#f0baf6] bg-[#f0baf6]"
/* SCSS */
$brand: #f0baf6;
/* SwiftUI */
Color(red: 0.941, green: 0.729, blue: 0.965)
/* Android */
Color.parseColor("#f0baf6")
/* Flutter */
Color(0xFFF0BAF6)
/* Python / OpenCV (BGR) */
(246, 186, 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 #f0baf6 · 13.06:1
Use #000000AAA at every size.
Aa
White text · 1.61:1
AA fail · AA large fail · AAA fail
Aa
Black text · 13.06:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f0baf6 as text scores 1.61:1 on white and 13.06:1 on black.

Accessibility — WCAG contrast

Aa
#f0baf6 on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#f0baf6 on black: 13.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B5C8F8
deuteranopia · #C1CEF4
tritanopia · #F2C0CF

Color scale — 50 to 950

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

#FBF3FC
#F7E7F9
#f0baf6
#E99CF2
#DF6AEC
#D439E5
#C61CD9
#A518B4
#841390
#601268
#3C0B41
Base = 200Lightest = 50 · #FBF3FCDarkest = 950 · #3C0B41
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F7E7F9;
  --brand-200: #f0baf6;
  --brand-300: #E99CF2;
  --brand-400: #DF6AEC;
  --brand-500: #D439E5;
  --brand-600: #C61CD9;
  --brand-700: #A518B4;
  --brand-800: #841390;
  --brand-900: #601268;
  --brand-950: #3C0B41;
  --brand: #f0baf6;
  --brand-ink: #000000;
}

Colors that work with #f0baf6

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#E8C0ED
Hairlines and dividers
Muted text#934B9B
Captions on the surface
Accent#4FBA12
Second voice, not a rival
Dark variant#670F71
Hover, pressed, headers
Light variant#FAE8FC
Selected rows, tints
Dark surface#231424
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 #f0baf6

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#C0F6BA
Analogous left#D2BAF6
Analogous right#F6BADE
Split-complement 1#DEF6BA
Split-complement 2#BAF6D2
Triadic 1#F6F0BA
Triadic 2#BAF6F0
Tetradic#F6D2BA

RGB percentages

Red94.1%
Green72.9%
Blue96.5%

CMYK percentages

Cyan2.4%
Magenta24.4%
Yellow0.0%
Key (black)3.5%

Color previews

#f0baf6 text on a black background

contrast 13.06:1

Card sample

#f0baf6 text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0baf6

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.

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

#f0baf6, answered

What color is #f0baf6?

#f0baf6 is a light electric magenta / pink, closest to Plum (ΔE2000 6.3). It sits at 294° on the hue wheel with 77% saturation and 85% lightness, which reads as neutral.

What is the RGB value of #f0baf6?

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

Is #f0baf6 a light or a dark color?

It is a light color. Relative luminance is 0.6030 and perceived brightness is 83%, so black text on it reaches 13.06:1.

Should I use black or white text on #f0baf6?

Black. It scores 13.06:1 against #f0baf6, versus 1.61:1 for white — AAA at any size.

What is the complementary color of #f0baf6?

#C0F6BA sits directly opposite on the wheel. Softer options are the split-complements #DEF6BA and #BAF6D2, which give the same contrast with far less vibration.

What colors go well with #f0baf6?

For interface work: #FAF4FA as the surface, #E8C0ED for borders, #934B9B for secondary text, #4FBA12 as an accent and #670F71 for hover and pressed states. For a palette, the analogous pair #D2BAF6 and #F6BADE stays calm, while #C0F6BA is the loudest partner.

What is #f0baf6 in CMYK for printing?

cmyk(2%, 24%, 0%, 4%). 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 #f0baf6 warm or cool?

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

Work with #f0baf6 in the Color Lab