Skip to content

#ff45f2

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

RGB
255, 69, 242
HSL
304°, 100%, 64%
CMYK
0, 73, 5, 0
Luminance
0.3193

At a glance

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

Hex
#ff45f2
Hue
304°
magenta / pink
Saturation
100%
electric
Lightness
64%
balanced
Brightness
100%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3193
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
7.39:1
Closest name
Magenta
ΔE2000 4.1
Where it sits
Hue304° of 360°
Saturation100%
Lightness64%
Temperature
Warm ← → Cool48% 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#ff45f2
RGBrgb(255, 69, 242)
HSLhsl(304, 100%, 64%)
CMYKcmyk(0%, 73%, 5%, 0%)
LABlab(63.3 85.7 -48.9)
LCHlch(63.3 98.7 330.3)
OKLCHoklch(0.720 0.279 331.1)
Decimal16729586
Display P3color(display-p3 1.000 0.271 0.949)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff45f2 on white: 2.84:1
AA ✗ fail · AA-large · AAA
Aa
#ff45f2 on black: 7.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3389F7
deuteranopia · #80A2EE
tritanopia · #FF5C98

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ff45f2 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
#FCE3FA
#FCC0F8
#FF8FF7
#ff45f2
#FF1FEF
#F500E4
#CC00BE
#A30098
#76056E
#490345
Base = 400Lightest = 50 · #FEF1FDDarkest = 950 · #490345
:root {
  --brand-50: #FEF1FD;
  --brand-100: #FCE3FA;
  --brand-200: #FCC0F8;
  --brand-300: #FF8FF7;
  --brand-400: #ff45f2;
  --brand-500: #FF1FEF;
  --brand-600: #F500E4;
  --brand-700: #CC00BE;
  --brand-800: #A30098;
  --brand-900: #76056E;
  --brand-950: #490345;
  --brand: #ff45f2;
  --brand-ink: #000000;
}

Colors that work with #ff45f2

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#EDC0E9
Hairlines and dividers
Muted text#9B4B95
Captions on the surface
Accent#24CC00
Second voice, not a rival
Dark variant#800077
Hover, pressed, headers
Light variant#FFE5FD
Selected rows, tints
Dark surface#241423
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 #ff45f2

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
  • 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
  • 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#45FF52
Analogous left#AF45FF
Analogous right#FF4595
Split-complement 1#95FF45
Split-complement 2#45FFAF
Triadic 1#F2FF45
Triadic 2#45F2FF
Tetradic#FFAF45

RGB percentages

Red100.0%
Green27.1%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta72.9%
Yellow5.1%
Key (black)0.0%

Color previews

#ff45f2 text on a black background

contrast 7.39:1

Card sample

#ff45f2 text on a white background

contrast 2.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff45f2

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.

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

#ff45f2, answered

What color is #ff45f2?

#ff45f2 is a balanced electric magenta / pink, closest to Magenta (ΔE2000 4.1). It sits at 304° on the hue wheel with 100% saturation and 64% lightness, which reads as neutral.

What is the RGB value of #ff45f2?

rgb(255, 69, 242) — 255 red, 69 green and 242 blue out of 255, or 100% / 27.1% / 94.9% by channel.

Is #ff45f2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3193 and perceived brightness is 67%, so black text on it reaches 7.39:1.

Should I use black or white text on #ff45f2?

Black. It scores 7.39:1 against #ff45f2, versus 2.84:1 for white — AAA at any size.

What is the complementary color of #ff45f2?

#45FF52 sits directly opposite on the wheel. Softer options are the split-complements #95FF45 and #45FFAF, which give the same contrast with far less vibration.

What colors go well with #ff45f2?

For interface work: #FAF4FA as the surface, #EDC0E9 for borders, #9B4B95 for secondary text, #24CC00 as an accent and #800077 for hover and pressed states. For a palette, the analogous pair #AF45FF and #FF4595 stays calm, while #45FF52 is the loudest partner.

What is #ff45f2 in CMYK for printing?

cmyk(0%, 73%, 5%, 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 #ff45f2 warm or cool?

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

Work with #ff45f2 in the Color Lab