Skip to content

#cf019c

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

RGB
207, 1, 156
HSL
315°, 99%, 41%
CMYK
0, 100, 25, 19
Luminance
0.1569

At a glance

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

Hex
#cf019c
Hue
315°
magenta / pink
Saturation
99%
electric
Lightness
41%
dark
Brightness
81%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1569
WCAG relative
Temperature
Warm
42/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.08:1
Closest name
Medium Violet Red
ΔE2000 4.3
Where it sits
Hue315° of 360°
Saturation99%
Lightness41%
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#cf019c
RGBrgb(207, 1, 156)
HSLhsl(315, 99%, 41%)
CMYKcmyk(0%, 100%, 25%, 19%)
LABlab(46.6 77.2 -26.2)
LCHlch(46.6 81.5 341.3)
OKLCHoklch(0.572 0.245 343.3)
Decimal13566364
Display P3color(display-p3 0.812 0.004 0.612)

Copy-ready code

/* CSS */
color: #cf019c;
background-color: #cf019c;
/* Tailwind (arbitrary) */
class="text-[#cf019c] bg-[#cf019c]"
/* SCSS */
$brand: #cf019c;
/* SwiftUI */
Color(red: 0.812, green: 0.004, blue: 0.612)
/* Android */
Color.parseColor("#cf019c")
/* Flutter */
Color(0xFFCF019C)
/* Python / OpenCV (BGR) */
(156, 1, 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 #cf019c · 5.08:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.08: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: #cf019c as text scores 5.08:1 on white and 4.14:1 on black.

Accessibility — WCAG contrast

Aa
#cf019c on white: 5.08:1
AA ✓ pass · AA-large · AAA
Aa
#cf019c on black: 4.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2E5B9F
deuteranopia · #6D7998
tritanopia · #DD015B

Color scale — 50 to 950

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

#FEF1FA
#FCE3F6
#FBC0ED
#FE8FE3
#FE58D5
#FE20C7
#F401B7
#cf019c
#A2017A
#750559
#490338
Base = 700Lightest = 50 · #FEF1FADarkest = 950 · #490338
:root {
  --brand-50: #FEF1FA;
  --brand-100: #FCE3F6;
  --brand-200: #FBC0ED;
  --brand-300: #FE8FE3;
  --brand-400: #FE58D5;
  --brand-500: #FE20C7;
  --brand-600: #F401B7;
  --brand-700: #cf019c;
  --brand-800: #A2017A;
  --brand-900: #750559;
  --brand-950: #490338;
  --brand: #cf019c;
  --brand-ink: #ffffff;
}

Colors that work with #cf019c

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#EDC0E1
Hairlines and dividers
Muted text#9B4B87
Captions on the surface
Accent#00CC00
Second voice, not a rival
Dark variant#7F0160
Hover, pressed, headers
Light variant#FFE6F9
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 #cf019c

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#01CF34
Analogous left#9B01CF
Analogous right#CF0135
Split-complement 1#35CF01
Split-complement 2#01CF9B
Triadic 1#9CCF01
Triadic 2#019CCF
Tetradic#CF9B01

RGB percentages

Red81.2%
Green0.4%
Blue61.2%

CMYK percentages

Cyan0.0%
Magenta99.5%
Yellow24.6%
Key (black)18.8%

Color previews

#cf019c text on a black background

contrast 4.14:1

Card sample

#cf019c text on a white background

contrast 5.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf019c

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.

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

#cf019c, answered

What color is #cf019c?

#cf019c is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 4.3). It sits at 315° on the hue wheel with 99% saturation and 41% lightness, which reads as warm.

What is the RGB value of #cf019c?

rgb(207, 1, 156) — 207 red, 1 green and 156 blue out of 255, or 81.2% / 0.4% / 61.2% by channel.

Is #cf019c a light or a dark color?

It is a dark color. Relative luminance is 0.1569 and perceived brightness is 49%, so white text on it reaches 5.08:1.

Should I use black or white text on #cf019c?

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

What is the complementary color of #cf019c?

#01CF34 sits directly opposite on the wheel. Softer options are the split-complements #35CF01 and #01CF9B, which give the same contrast with far less vibration.

What colors go well with #cf019c?

For interface work: #FAF4F9 as the surface, #EDC0E1 for borders, #9B4B87 for secondary text, #00CC00 as an accent and #7F0160 for hover and pressed states. For a palette, the analogous pair #9B01CF and #CF0135 stays calm, while #01CF34 is the loudest partner.

What is #cf019c in CMYK for printing?

cmyk(0%, 100%, 25%, 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 #cf019c 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 #CF0150; nudged cooler, #B700D0.

Work with #cf019c in the Color Lab