Skip to content

#cf1f7c

a balanced, vivid magenta / pink · warm · closest name: Medium Violet Red

RGB
207, 31, 124
HSL
328°, 74%, 47%
CMYK
0, 85, 40, 19
Luminance
0.1570

At a glance

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

Hex
#cf1f7c
Hue
328°
magenta / pink
Saturation
74%
vivid
Lightness
47%
balanced
Brightness
81%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1570
WCAG relative
Temperature
Warm
34/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.07:1
Closest name
Medium Violet Red
ΔE2000 3.7
Where it sits
Hue328° of 360°
Saturation74%
Lightness47%
Temperature
Warm ← → Cool34% 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#cf1f7c
RGBrgb(207, 31, 124)
HSLhsl(328, 74%, 47%)
CMYKcmyk(0%, 85%, 40%, 19%)
LABlab(46.6 70.2 -6.8)
LCHlch(46.6 70.5 354.5)
OKLCHoklch(0.568 0.217 355.5)
Decimal13574012
Display P3color(display-p3 0.812 0.122 0.486)

Copy-ready code

/* CSS */
color: #cf1f7c;
background-color: #cf1f7c;
/* Tailwind (arbitrary) */
class="text-[#cf1f7c] bg-[#cf1f7c]"
/* SCSS */
$brand: #cf1f7c;
/* SwiftUI */
Color(red: 0.812, green: 0.122, blue: 0.486)
/* Android */
Color.parseColor("#cf1f7c")
/* Flutter */
Color(0xFFCF1F7C)
/* Python / OpenCV (BGR) */
(124, 31, 207)

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#ffffff on #cf1f7c · 5.07:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.07:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.14:1
AA fail · AA large pass · AAA fail
Reading the other direction: #cf1f7c as text scores 5.07:1 on white and 4.14:1 on black.

Accessibility — WCAG contrast

Aa
#cf1f7c on white: 5.07:1
AA ✓ pass · AA-large · AAA
Aa
#cf1f7c on black: 4.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4A5A7E
deuteranopia · #7A7A78
tritanopia · #E0004D

Color scale — 50 to 950

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

#FCF3F8
#F9E7F0
#F3C8DF
#F09DC9
#E96DAE
#E23C93
#cf1f7c
#B11B6A
#8E1555
#671440
#400C28
Base = 600Lightest = 50 · #FCF3F8Darkest = 950 · #400C28
:root {
  --brand-50: #FCF3F8;
  --brand-100: #F9E7F0;
  --brand-200: #F3C8DF;
  --brand-300: #F09DC9;
  --brand-400: #E96DAE;
  --brand-500: #E23C93;
  --brand-600: #cf1f7c;
  --brand-700: #B11B6A;
  --brand-800: #8E1555;
  --brand-900: #671440;
  --brand-950: #400C28;
  --brand: #cf1f7c;
  --brand-ink: #ffffff;
}

Colors that work with #cf1f7c

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF4F8
Tinted page background
Border#EDC0D7
Hairlines and dividers
Muted text#9B4B75
Captions on the surface
Accent#16B639
Second voice, not a rival
Dark variant#6F1142
Hover, pressed, headers
Light variant#FCE9F3
Selected rows, tints
Dark surface#24141D
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 #cf1f7c

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#1FCF72
Analogous left#CA1FCF
Analogous right#CF1F24
Split-complement 1#24CF1F
Split-complement 2#1FCFCA
Triadic 1#7CCF1F
Triadic 2#1F7CCF
Tetradic#CFCA1F

RGB percentages

Red81.2%
Green12.2%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta85.0%
Yellow40.1%
Key (black)18.8%

Color previews

#cf1f7c text on a black background

contrast 4.14:1

Card sample

#cf1f7c text on a white background

contrast 5.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf1f7c

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.

#cf1f7c 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

Converts to four-color process without much drama. Proof it anyway.

#cf1f7c, answered

What color is #cf1f7c?

#cf1f7c is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 3.7). It sits at 328° on the hue wheel with 74% saturation and 47% lightness, which reads as warm.

What is the RGB value of #cf1f7c?

rgb(207, 31, 124) — 207 red, 31 green and 124 blue out of 255, or 81.2% / 12.2% / 48.6% by channel.

Is #cf1f7c a light or a dark color?

It is a dark color. Relative luminance is 0.1570 and perceived brightness is 48%, so white text on it reaches 5.07:1.

Should I use black or white text on #cf1f7c?

White. It scores 5.07:1 against #cf1f7c, versus 4.14:1 for black — AA at any size.

What is the complementary color of #cf1f7c?

#1FCF72 sits directly opposite on the wheel. Softer options are the split-complements #24CF1F and #1FCFCA, which give the same contrast with far less vibration.

What colors go well with #cf1f7c?

For interface work: #FAF4F8 as the surface, #EDC0D7 for borders, #9B4B75 for secondary text, #16B639 as an accent and #6F1142 for hover and pressed states. For a palette, the analogous pair #CA1FCF and #CF1F24 stays calm, while #1FCF72 is the loudest partner.

What is #cf1f7c in CMYK for printing?

cmyk(0%, 85%, 40%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cf1f7c warm or cool?

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

Work with #cf1f7c in the Color Lab