Skip to content

#ff4df8

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

RGB
255, 77, 248
HSL
302°, 100%, 65%
CMYK
0, 70, 3, 0
Luminance
0.3335

At a glance

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

Hex
#ff4df8
Hue
302°
magenta / pink
Saturation
100%
electric
Lightness
65%
light
Brightness
100%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3335
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
7.67:1
Closest name
Magenta
ΔE2000 4.7
Where it sits
Hue302° of 360°
Saturation100%
Lightness65%
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#ff4df8
RGBrgb(255, 77, 248)
HSLhsl(302, 100%, 65%)
CMYKcmyk(0%, 70%, 3%, 0%)
LABlab(64.4 84.2 -50.4)
LCHlch(64.4 98.1 329.1)
OKLCHoklch(0.730 0.275 329.7)
Decimal16731640
Display P3color(display-p3 1.000 0.302 0.973)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff4df8 on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#ff4df8 on black: 7.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #378DFD
deuteranopia · #80A5F4
tritanopia · #FF659E

Color scale — 50 to 950

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

#FEF1FD
#FCE3FB
#FCC0F9
#FF8FFB
#ff4df8
#FF1FF6
#F500EB
#CC00C4
#A3009D
#760571
#490347
Base = 400Lightest = 50 · #FEF1FDDarkest = 950 · #490347
:root {
  --brand-50: #FEF1FD;
  --brand-100: #FCE3FB;
  --brand-200: #FCC0F9;
  --brand-300: #FF8FFB;
  --brand-400: #ff4df8;
  --brand-500: #FF1FF6;
  --brand-600: #F500EB;
  --brand-700: #CC00C4;
  --brand-800: #A3009D;
  --brand-900: #760571;
  --brand-950: #490347;
  --brand: #ff4df8;
  --brand-ink: #000000;
}

Colors that work with #ff4df8

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#2ACC00
Second voice, not a rival
Dark variant#80007A
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 #ff4df8

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#4DFF54
Analogous left#AD4DFF
Analogous right#FF4D9F
Split-complement 1#9FFF4D
Split-complement 2#4DFFAD
Triadic 1#F8FF4D
Triadic 2#4DF8FF
Tetradic#FFAD4D

RGB percentages

Red100.0%
Green30.2%
Blue97.3%

CMYK percentages

Cyan0.0%
Magenta69.8%
Yellow2.7%
Key (black)0.0%

Color previews

#ff4df8 text on a black background

contrast 7.67:1

Card sample

#ff4df8 text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff4df8

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.

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

#ff4df8, answered

What color is #ff4df8?

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

What is the RGB value of #ff4df8?

rgb(255, 77, 248) — 255 red, 77 green and 248 blue out of 255, or 100% / 30.2% / 97.3% by channel.

Is #ff4df8 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3335 and perceived brightness is 68%, so black text on it reaches 7.67:1.

Should I use black or white text on #ff4df8?

Black. It scores 7.67:1 against #ff4df8, versus 2.74:1 for white — AAA at any size.

What is the complementary color of #ff4df8?

#4DFF54 sits directly opposite on the wheel. Softer options are the split-complements #9FFF4D and #4DFFAD, which give the same contrast with far less vibration.

What colors go well with #ff4df8?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B98 for secondary text, #2ACC00 as an accent and #80007A for hover and pressed states. For a palette, the analogous pair #AD4DFF and #FF4D9F stays calm, while #4DFF54 is the loudest partner.

What is #ff4df8 in CMYK for printing?

cmyk(0%, 70%, 3%, 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 #ff4df8 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 #FF4DB7; nudged cooler, #C54DFF.

Work with #ff4df8 in the Color Lab