Skip to content

#cf06b2

a dark, electric magenta / pink · neutral · closest name: Medium Violet Red

RGB
207, 6, 178
HSL
309°, 94%, 42%
CMYK
0, 97, 14, 19
Luminance
0.1661

At a glance

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

Hex
#cf06b2
Hue
309°
magenta / pink
Saturation
94%
electric
Lightness
42%
dark
Brightness
81%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1661
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.86:1
Closest name
Medium Violet Red
ΔE2000 8
Where it sits
Hue309° of 360°
Saturation94%
Lightness42%
Temperature
Warm ← → Cool45% 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#cf06b2
RGBrgb(207, 6, 178)
HSLhsl(309, 94%, 42%)
CMYKcmyk(0%, 97%, 14%, 19%)
LABlab(47.8 79.5 -37.4)
LCHlch(47.8 87.8 334.8)
OKLCHoklch(0.584 0.256 336.4)
Decimal13567666
Display P3color(display-p3 0.812 0.024 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf06b2 on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#cf06b2 on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1160B6
deuteranopia · #657BAE
tritanopia · #DA2568

Color scale — 50 to 950

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

#FDF2FB
#FBE4F8
#FAC2F2
#FC92ED
#FA5BE3
#F925DA
#EE07CC
#cf06b2
#9F0588
#720863
#47053E
Base = 700Lightest = 50 · #FDF2FBDarkest = 950 · #47053E
:root {
  --brand-50: #FDF2FB;
  --brand-100: #FBE4F8;
  --brand-200: #FAC2F2;
  --brand-300: #FC92ED;
  --brand-400: #FA5BE3;
  --brand-500: #F925DA;
  --brand-600: #EE07CC;
  --brand-700: #cf06b2;
  --brand-800: #9F0588;
  --brand-900: #720863;
  --brand-950: #47053E;
  --brand: #cf06b2;
  --brand-ink: #ffffff;
}

Colors that work with #cf06b2

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#FAF4FA
Tinted page background
Border#EDC0E6
Hairlines and dividers
Muted text#9B4B8F
Captions on the surface
Accent#17CA02
Second voice, not a rival
Dark variant#7C046A
Hover, pressed, headers
Light variant#FEE6FB
Selected rows, tints
Dark surface#241422
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 #cf06b2

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#06CF23
Analogous left#8806CF
Analogous right#CF064D
Split-complement 1#4DCF06
Split-complement 2#06CF88
Triadic 1#B2CF06
Triadic 2#06B2CF
Tetradic#CF8806

RGB percentages

Red81.2%
Green2.4%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta97.1%
Yellow14.0%
Key (black)18.8%

Color previews

#cf06b2 text on a black background

contrast 4.32:1

Card sample

#cf06b2 text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf06b2

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.

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

#cf06b2, answered

What color is #cf06b2?

#cf06b2 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 8). It sits at 309° on the hue wheel with 94% saturation and 42% lightness, which reads as neutral.

What is the RGB value of #cf06b2?

rgb(207, 6, 178) — 207 red, 6 green and 178 blue out of 255, or 81.2% / 2.4% / 69.8% by channel.

Is #cf06b2 a light or a dark color?

It is a dark color. Relative luminance is 0.1661 and perceived brightness is 50%, so white text on it reaches 4.86:1.

Should I use black or white text on #cf06b2?

White. It scores 4.86:1 against #cf06b2, versus 4.32:1 for black — AA at any size.

What is the complementary color of #cf06b2?

#06CF23 sits directly opposite on the wheel. Softer options are the split-complements #4DCF06 and #06CF88, which give the same contrast with far less vibration.

What colors go well with #cf06b2?

For interface work: #FAF4FA as the surface, #EDC0E6 for borders, #9B4B8F for secondary text, #17CA02 as an accent and #7C046A for hover and pressed states. For a palette, the analogous pair #8806CF and #CF064D stays calm, while #06CF23 is the loudest partner.

What is #cf06b2 in CMYK for printing?

cmyk(0%, 97%, 14%, 19%). 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 #cf06b2 warm or cool?

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

Work with #cf06b2 in the Color Lab