Skip to content

#ff7ffb

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

RGB
255, 127, 251
HSL
302°, 100%, 75%
CMYK
0, 50, 2, 0
Luminance
0.4340

At a glance

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

Hex
#ff7ffb
Hue
302°
magenta / pink
Saturation
100%
electric
Lightness
75%
light
Brightness
100%
HSV value
Perceived
75%
weighted brightness
Luminance
0.4340
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
9.68:1
Closest name
Violet
ΔE2000 2.7
Where it sits
Hue302° of 360°
Saturation100%
Lightness75%
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#ff7ffb
RGBrgb(255, 127, 251)
HSLhsl(302, 100%, 75%)
CMYKcmyk(0%, 50%, 2%, 0%)
LABlab(71.8 64.7 -40.4)
LCHlch(71.8 76.3 328.0)
OKLCHoklch(0.784 0.212 328.5)
Decimal16744443
Display P3color(display-p3 1.000 0.498 0.984)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff7ffb on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#ff7ffb on black: 9.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #75A5FF
deuteranopia · #9BB6F7
tritanopia · #FF8CB2

Color scale — 50 to 950

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

#FEF1FD
#FCE3FB
#FCC0FA
#ff7ffb
#FF57FA
#FF1FF8
#F500ED
#CC00C6
#A3009E
#760572
#490347
Base = 300Lightest = 50 · #FEF1FDDarkest = 950 · #490347
:root {
  --brand-50: #FEF1FD;
  --brand-100: #FCE3FB;
  --brand-200: #FCC0FA;
  --brand-300: #ff7ffb;
  --brand-400: #FF57FA;
  --brand-500: #FF1FF8;
  --brand-600: #F500ED;
  --brand-700: #CC00C6;
  --brand-800: #A3009E;
  --brand-900: #760572;
  --brand-950: #490347;
  --brand: #ff7ffb;
  --brand-ink: #000000;
}

Colors that work with #ff7ffb

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#EDC0EB
Hairlines and dividers
Muted text#9B4B98
Captions on the surface
Accent#2DCC00
Second voice, not a rival
Dark variant#80007B
Hover, pressed, headers
Light variant#FFE5FE
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 #ff7ffb

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#7FFF83
Analogous left#C37FFF
Analogous right#FF7FBB
Split-complement 1#BBFF7F
Split-complement 2#7FFFC3
Triadic 1#FBFF7F
Triadic 2#7FFBFF
Tetradic#FFC37F

RGB percentages

Red100.0%
Green49.8%
Blue98.4%

CMYK percentages

Cyan0.0%
Magenta50.2%
Yellow1.6%
Key (black)0.0%

Color previews

#ff7ffb text on a black background

contrast 9.68:1

Card sample

#ff7ffb text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff7ffb

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.

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

#ff7ffb, answered

What color is #ff7ffb?

#ff7ffb is a light electric magenta / pink, closest to Violet (ΔE2000 2.7). It sits at 302° on the hue wheel with 100% saturation and 75% lightness, which reads as neutral.

What is the RGB value of #ff7ffb?

rgb(255, 127, 251) — 255 red, 127 green and 251 blue out of 255, or 100% / 49.8% / 98.4% by channel.

Is #ff7ffb a light or a dark color?

It is a mid-tone. Relative luminance is 0.4340 and perceived brightness is 75%, so black text on it reaches 9.68:1.

Should I use black or white text on #ff7ffb?

Black. It scores 9.68:1 against #ff7ffb, versus 2.17:1 for white — AAA at any size.

What is the complementary color of #ff7ffb?

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

What colors go well with #ff7ffb?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B98 for secondary text, #2DCC00 as an accent and #80007B for hover and pressed states. For a palette, the analogous pair #C37FFF and #FF7FBB stays calm, while #7FFF83 is the loudest partner.

What is #ff7ffb in CMYK for printing?

cmyk(0%, 50%, 2%, 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 #ff7ffb 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 #FF7FCC; nudged cooler, #D47FFF.

Work with #ff7ffb in the Color Lab