Skip to content

#cf02a9

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

RGB
207, 2, 169
HSL
311°, 98%, 41%
CMYK
0, 99, 18, 19
Luminance
0.1617

At a glance

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

Hex
#cf02a9
Hue
311°
magenta / pink
Saturation
98%
electric
Lightness
41%
dark
Brightness
81%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1617
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.96:1
Closest name
Medium Violet Red
ΔE2000 6.5
Where it sits
Hue311° of 360°
Saturation98%
Lightness41%
Temperature
Warm ← → Cool44% 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#cf02a9
RGBrgb(207, 2, 169)
HSLhsl(311, 98%, 41%)
CMYKcmyk(0%, 99%, 18%, 19%)
LABlab(47.2 78.7 -33.0)
LCHlch(47.2 85.3 337.3)
OKLCHoklch(0.579 0.252 339.2)
Decimal13566633
Display P3color(display-p3 0.812 0.008 0.663)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf02a9 on white: 4.96:1
AA ✓ pass · AA-large · AAA
Aa
#cf02a9 on black: 4.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #205EAC
deuteranopia · #687AA5
tritanopia · #DC1A63

Color scale — 50 to 950

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

#FDF1FB
#FCE3F7
#FBC1F0
#FE90EA
#FD58DF
#FD21D4
#F202C6
#cf02a9
#A20284
#740660
#49043C
Base = 700Lightest = 50 · #FDF1FBDarkest = 950 · #49043C
:root {
  --brand-50: #FDF1FB;
  --brand-100: #FCE3F7;
  --brand-200: #FBC1F0;
  --brand-300: #FE90EA;
  --brand-400: #FD58DF;
  --brand-500: #FD21D4;
  --brand-600: #F202C6;
  --brand-700: #cf02a9;
  --brand-800: #A20284;
  --brand-900: #740660;
  --brand-950: #49043C;
  --brand: #cf02a9;
  --brand-ink: #ffffff;
}

Colors that work with #cf02a9

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#FAF4F9
Tinted page background
Border#EDC0E4
Hairlines and dividers
Muted text#9B4B8C
Captions on the surface
Accent#0ECC00
Second voice, not a rival
Dark variant#7E0167
Hover, pressed, headers
Light variant#FFE6FA
Selected rows, tints
Dark surface#241421
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 #cf02a9

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#02CF28
Analogous left#8E02CF
Analogous right#CF0243
Split-complement 1#43CF02
Split-complement 2#02CF8E
Triadic 1#A9CF02
Triadic 2#02A9CF
Tetradic#CF8E02

RGB percentages

Red81.2%
Green0.8%
Blue66.3%

CMYK percentages

Cyan0.0%
Magenta99.0%
Yellow18.4%
Key (black)18.8%

Color previews

#cf02a9 text on a black background

contrast 4.23:1

Card sample

#cf02a9 text on a white background

contrast 4.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf02a9

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.

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

#cf02a9, answered

What color is #cf02a9?

#cf02a9 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 6.5). It sits at 311° on the hue wheel with 98% saturation and 41% lightness, which reads as neutral.

What is the RGB value of #cf02a9?

rgb(207, 2, 169) — 207 red, 2 green and 169 blue out of 255, or 81.2% / 0.8% / 66.3% by channel.

Is #cf02a9 a light or a dark color?

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

Should I use black or white text on #cf02a9?

White. It scores 4.96:1 against #cf02a9, versus 4.23:1 for black — AA at any size.

What is the complementary color of #cf02a9?

#02CF28 sits directly opposite on the wheel. Softer options are the split-complements #43CF02 and #02CF8E, which give the same contrast with far less vibration.

What colors go well with #cf02a9?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8C for secondary text, #0ECC00 as an accent and #7E0167 for hover and pressed states. For a palette, the analogous pair #8E02CF and #CF0243 stays calm, while #02CF28 is the loudest partner.

What is #cf02a9 in CMYK for printing?

cmyk(0%, 99%, 18%, 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 #cf02a9 warm or cool?

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

Work with #cf02a9 in the Color Lab