Skip to content

#cf42ac

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

RGB
207, 66, 172
HSL
315°, 60%, 54%
CMYK
0, 68, 17, 19
Luminance
0.2014

At a glance

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

Hex
#cf42ac
Hue
315°
magenta / pink
Saturation
60%
vivid
Lightness
54%
balanced
Brightness
81%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2014
WCAG relative
Temperature
Warm
42/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.03:1
Closest name
Medium Violet Red
ΔE2000 8.8
Where it sits
Hue315° of 360°
Saturation60%
Lightness54%
Temperature
Warm ← → Cool42% 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#cf42ac
RGBrgb(207, 66, 172)
HSLhsl(315, 60%, 54%)
CMYKcmyk(0%, 68%, 17%, 19%)
LABlab(52.0 65.7 -27.3)
LCHlch(52.0 71.2 337.5)
OKLCHoklch(0.614 0.208 339.3)
Decimal13583020
Display P3color(display-p3 0.812 0.259 0.675)

Copy-ready code

/* CSS */
color: #cf42ac;
background-color: #cf42ac;
/* Tailwind (arbitrary) */
class="text-[#cf42ac] bg-[#cf42ac]"
/* SCSS */
$brand: #cf42ac;
/* SwiftUI */
Color(red: 0.812, green: 0.259, blue: 0.675)
/* Android */
Color.parseColor("#cf42ac")
/* Flutter */
Color(0xFFCF42AC)
/* Python / OpenCV (BGR) */
(172, 66, 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#000000 on #cf42ac · 5.03:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.18:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.03:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #cf42ac as text scores 4.18:1 on white and 5.03:1 on black.

Accessibility — WCAG contrast

Aa
#cf42ac on white: 4.18:1
AA ✗ fail · AA-large · AAA
Aa
#cf42ac on black: 5.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4A6EAF
deuteranopia · #7684A9
tritanopia · #DB4771

Color scale — 50 to 950

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

#FBF4F9
#F7E9F3
#EFCCE7
#E8A6D8
#DD79C4
#cf42ac
#C3329F
#A32985
#82216A
#5F1C4E
#3B1131
Base = 500Lightest = 50 · #FBF4F9Darkest = 950 · #3B1131
:root {
  --brand-50: #FBF4F9;
  --brand-100: #F7E9F3;
  --brand-200: #EFCCE7;
  --brand-300: #E8A6D8;
  --brand-400: #DD79C4;
  --brand-500: #cf42ac;
  --brand-600: #C3329F;
  --brand-700: #A32985;
  --brand-800: #82216A;
  --brand-900: #5F1C4E;
  --brand-950: #3B1131;
  --brand: #cf42ac;
  --brand-ink: #000000;
}

Colors that work with #cf42ac

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#EDC0E1
Hairlines and dividers
Muted text#9B4B87
Captions on the surface
Accent#25A725
Second voice, not a rival
Dark variant#661A53
Hover, pressed, headers
Light variant#FAEBF6
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 #cf42ac

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

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#42CF65
Analogous left#AB42CF
Analogous right#CF4265
Split-complement 1#65CF42
Split-complement 2#42CFAB
Triadic 1#ACCF42
Triadic 2#42ACCF
Tetradic#CFAB42

RGB percentages

Red81.2%
Green25.9%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta68.1%
Yellow16.9%
Key (black)18.8%

Color previews

#cf42ac text on a black background

contrast 5.03:1

Card sample

#cf42ac text on a white background

contrast 4.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf42ac

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.

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

#cf42ac, answered

What color is #cf42ac?

#cf42ac is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 8.8). It sits at 315° on the hue wheel with 60% saturation and 54% lightness, which reads as warm.

What is the RGB value of #cf42ac?

rgb(207, 66, 172) — 207 red, 66 green and 172 blue out of 255, or 81.2% / 25.9% / 67.5% by channel.

Is #cf42ac a light or a dark color?

It is a mid-tone. Relative luminance is 0.2014 and perceived brightness is 54%, so black text on it reaches 5.03:1.

Should I use black or white text on #cf42ac?

Black. It scores 5.03:1 against #cf42ac, versus 4.18:1 for white — AA at any size.

What is the complementary color of #cf42ac?

#42CF65 sits directly opposite on the wheel. Softer options are the split-complements #65CF42 and #42CFAB, which give the same contrast with far less vibration.

What colors go well with #cf42ac?

For interface work: #FAF4F9 as the surface, #EDC0E1 for borders, #9B4B87 for secondary text, #25A725 as an accent and #661A53 for hover and pressed states. For a palette, the analogous pair #AB42CF and #CF4265 stays calm, while #42CF65 is the loudest partner.

What is #cf42ac in CMYK for printing?

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

Is #cf42ac warm or cool?

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

Work with #cf42ac in the Color Lab