Skip to content

#ff9fec

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

RGB
255, 159, 236
HSL
312°, 100%, 81%
CMYK
0, 38, 8, 0
Luminance
0.5211

At a glance

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

Hex
#ff9fec
Hue
312°
magenta / pink
Saturation
100%
electric
Lightness
81%
light
Brightness
100%
HSV value
Perceived
79%
weighted brightness
Luminance
0.5211
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
11.42:1
Closest name
Plum
ΔE2000 5.9
Where it sits
Hue312° of 360°
Saturation100%
Lightness81%
Temperature
Warm ← → Cool43% 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#ff9fec
RGBrgb(255, 159, 236)
HSLhsl(312, 100%, 81%)
CMYKcmyk(0%, 38%, 8%, 0%)
LABlab(77.3 46.5 -23.8)
LCHlch(77.3 52.2 332.9)
OKLCHoklch(0.823 0.148 334.4)
Decimal16752620
Display P3color(display-p3 1.000 0.624 0.925)

Copy-ready code

/* CSS */
color: #ff9fec;
background-color: #ff9fec;
/* Tailwind (arbitrary) */
class="text-[#ff9fec] bg-[#ff9fec]"
/* SCSS */
$brand: #ff9fec;
/* SwiftUI */
Color(red: 1.000, green: 0.624, blue: 0.925)
/* Android */
Color.parseColor("#ff9fec")
/* Flutter */
Color(0xFFFF9FEC)
/* Python / OpenCV (BGR) */
(236, 159, 255)

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

Accessibility — WCAG contrast

Aa
#ff9fec on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#ff9fec on black: 11.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9FB6EF
deuteranopia · #B7C4E9
tritanopia · #FFA3BB

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ff9fec 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.

#FEF1FB
#FCE3F7
#FCC0F0
#ff9fec
#FF57DE
#FF1FD2
#F500C4
#CC00A4
#A30083
#76055F
#49033B
Base = 300Lightest = 50 · #FEF1FBDarkest = 950 · #49033B
:root {
  --brand-50: #FEF1FB;
  --brand-100: #FCE3F7;
  --brand-200: #FCC0F0;
  --brand-300: #ff9fec;
  --brand-400: #FF57DE;
  --brand-500: #FF1FD2;
  --brand-600: #F500C4;
  --brand-700: #CC00A4;
  --brand-800: #A30083;
  --brand-900: #76055F;
  --brand-950: #49033B;
  --brand: #ff9fec;
  --brand-ink: #000000;
}

Colors that work with #ff9fec

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#EDC0E4
Hairlines and dividers
Muted text#9B4B8B
Captions on the surface
Accent#0BCC00
Second voice, not a rival
Dark variant#800066
Hover, pressed, headers
Light variant#FFE5FA
Selected rows, tints
Dark surface#241421
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 #ff9fec

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#9FFFB2
Analogous left#E29FFF
Analogous right#FF9FBC
Split-complement 1#BCFF9F
Split-complement 2#9FFFE2
Triadic 1#ECFF9F
Triadic 2#9FECFF
Tetradic#FFE29F

RGB percentages

Red100.0%
Green62.4%
Blue92.5%

CMYK percentages

Cyan0.0%
Magenta37.6%
Yellow7.5%
Key (black)0.0%

Color previews

#ff9fec text on a black background

contrast 11.42:1

Card sample

#ff9fec text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 159, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 159, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ff9fec;
background: linear-gradient(135deg, #ff9fec, #FF9FAC);

Monochromatic scale

Palettes built from #ff9fec

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.

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

#ff9fec, answered

What color is #ff9fec?

#ff9fec is a light electric magenta / pink, closest to Plum (ΔE2000 5.9). It sits at 312° on the hue wheel with 100% saturation and 81% lightness, which reads as neutral.

What is the RGB value of #ff9fec?

rgb(255, 159, 236) — 255 red, 159 green and 236 blue out of 255, or 100% / 62.4% / 92.5% by channel.

Is #ff9fec a light or a dark color?

It is a light color. Relative luminance is 0.5211 and perceived brightness is 79%, so black text on it reaches 11.42:1.

Should I use black or white text on #ff9fec?

Black. It scores 11.42:1 against #ff9fec, versus 1.84:1 for white — AAA at any size.

What is the complementary color of #ff9fec?

#9FFFB2 sits directly opposite on the wheel. Softer options are the split-complements #BCFF9F and #9FFFE2, which give the same contrast with far less vibration.

What colors go well with #ff9fec?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8B for secondary text, #0BCC00 as an accent and #800066 for hover and pressed states. For a palette, the analogous pair #E29FFF and #FF9FBC stays calm, while #9FFFB2 is the loudest partner.

What is #ff9fec in CMYK for printing?

cmyk(0%, 38%, 8%, 0%). 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 #ff9fec warm or cool?

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

Work with #ff9fec in the Color Lab