Skip to content

#f07fcf

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

RGB
240, 127, 207
HSL
318°, 79%, 72%
CMYK
0, 47, 14, 6
Luminance
0.3821

At a glance

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

Hex
#f07fcf
Hue
318°
magenta / pink
Saturation
79%
electric
Lightness
72%
light
Brightness
94%
HSV value
Perceived
70%
weighted brightness
Luminance
0.3821
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
8.64:1
Closest name
Violet
ΔE2000 5.9
Where it sits
Hue318° of 360°
Saturation79%
Lightness72%
Temperature
Warm ← → Cool40% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#f07fcf
RGBrgb(240, 127, 207)
HSLhsl(318, 79%, 72%)
CMYKcmyk(0%, 47%, 14%, 6%)
LABlab(68.2 53.3 -22.0)
LCHlch(68.2 57.6 337.6)
OKLCHoklch(0.747 0.167 339.4)
Decimal15761359
Display P3color(display-p3 0.941 0.498 0.812)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f07fcf on white: 2.43:1
AA ✗ fail · AA-large · AAA
Aa
#f07fcf on black: 8.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #839BD2
deuteranopia · #A2ADCC
tritanopia · #FB819E

Color scale — 50 to 950

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

#FCF3F9
#F9E6F4
#F5C7E7
#F39BD9
#f07fcf
#E736B4
#DB1AA3
#B71588
#92116C
#6A1150
#420A32
Base = 400Lightest = 50 · #FCF3F9Darkest = 950 · #420A32
:root {
  --brand-50: #FCF3F9;
  --brand-100: #F9E6F4;
  --brand-200: #F5C7E7;
  --brand-300: #F39BD9;
  --brand-400: #f07fcf;
  --brand-500: #E736B4;
  --brand-600: #DB1AA3;
  --brand-700: #B71588;
  --brand-800: #92116C;
  --brand-900: #6A1150;
  --brand-950: #420A32;
  --brand: #f07fcf;
  --brand-ink: #000000;
}

Colors that work with #f07fcf

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#EDC0E0
Hairlines and dividers
Muted text#9B4B83
Captions on the surface
Accent#11BB18
Second voice, not a rival
Dark variant#720D55
Hover, pressed, headers
Light variant#FCE8F6
Selected rows, tints
Dark surface#241420
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 #f07fcf

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#7FF0A0
Analogous left#D97FF0
Analogous right#F07F97
Split-complement 1#97F07F
Split-complement 2#7FF0D9
Triadic 1#CFF07F
Triadic 2#7FCFF0
Tetradic#F0D97F

RGB percentages

Red94.1%
Green49.8%
Blue81.2%

CMYK percentages

Cyan0.0%
Magenta47.1%
Yellow13.7%
Key (black)5.9%

Color previews

#f07fcf text on a black background

contrast 8.64:1

Card sample

#f07fcf text on a white background

contrast 2.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f07fcf

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.

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

#f07fcf, answered

What color is #f07fcf?

#f07fcf is a light electric magenta / pink, closest to Violet (ΔE2000 5.9). It sits at 318° on the hue wheel with 79% saturation and 72% lightness, which reads as warm.

What is the RGB value of #f07fcf?

rgb(240, 127, 207) — 240 red, 127 green and 207 blue out of 255, or 94.1% / 49.8% / 81.2% by channel.

Is #f07fcf a light or a dark color?

It is a mid-tone. Relative luminance is 0.3821 and perceived brightness is 70%, so black text on it reaches 8.64:1.

Should I use black or white text on #f07fcf?

Black. It scores 8.64:1 against #f07fcf, versus 2.43:1 for white — AAA at any size.

What is the complementary color of #f07fcf?

#7FF0A0 sits directly opposite on the wheel. Softer options are the split-complements #97F07F and #7FF0D9, which give the same contrast with far less vibration.

What colors go well with #f07fcf?

For interface work: #FAF4F9 as the surface, #EDC0E0 for borders, #9B4B83 for secondary text, #11BB18 as an accent and #720D55 for hover and pressed states. For a palette, the analogous pair #D97FF0 and #F07F97 stays calm, while #7FF0A0 is the loudest partner.

What is #f07fcf in CMYK for printing?

cmyk(0%, 47%, 14%, 6%). 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 #f07fcf warm or cool?

Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F07FA6; nudged cooler, #E97EF1.

Work with #f07fcf in the Color Lab