Skip to content

#cf189f

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

RGB
207, 24, 159
HSL
316°, 79%, 45%
CMYK
0, 88, 23, 19
Luminance
0.1642

At a glance

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

Hex
#cf189f
Hue
316°
magenta / pink
Saturation
79%
electric
Lightness
45%
balanced
Brightness
81%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1642
WCAG relative
Temperature
Warm
41/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.90:1
Closest name
Medium Violet Red
ΔE2000 4.8
Where it sits
Hue316° of 360°
Saturation79%
Lightness45%
Temperature
Warm ← → Cool41% 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#cf189f
RGBrgb(207, 24, 159)
HSLhsl(316, 79%, 45%)
CMYKcmyk(0%, 88%, 23%, 19%)
LABlab(47.5 75.2 -26.5)
LCHlch(47.5 79.7 340.6)
OKLCHoklch(0.580 0.238 342.6)
Decimal13572255
Display P3color(display-p3 0.812 0.094 0.624)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf189f on white: 4.90:1
AA ✓ pass · AA-large · AAA
Aa
#cf189f on black: 4.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #335EA2
deuteranopia · #6F7B9B
tritanopia · #DD1B5F

Color scale — 50 to 950

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

#FCF3FA
#F9E6F4
#F5C7E9
#F39ADC
#ED68CB
#E836B9
#cf189f
#B7158D
#921170
#6A1152
#420A34
Base = 600Lightest = 50 · #FCF3FADarkest = 950 · #420A34
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F9E6F4;
  --brand-200: #F5C7E9;
  --brand-300: #F39ADC;
  --brand-400: #ED68CB;
  --brand-500: #E836B9;
  --brand-600: #cf189f;
  --brand-700: #B7158D;
  --brand-800: #921170;
  --brand-900: #6A1152;
  --brand-950: #420A34;
  --brand: #cf189f;
  --brand-ink: #ffffff;
}

Colors that work with #cf189f

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#9B4B86
Captions on the surface
Accent#11BB13
Second voice, not a rival
Dark variant#720D58
Hover, pressed, headers
Light variant#FCE8F7
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 #cf189f

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#18CF48
Analogous left#A318CF
Analogous right#CF1844
Split-complement 1#44CF18
Split-complement 2#18CFA3
Triadic 1#9FCF18
Triadic 2#189FCF
Tetradic#CFA318

RGB percentages

Red81.2%
Green9.4%
Blue62.4%

CMYK percentages

Cyan0.0%
Magenta88.4%
Yellow23.2%
Key (black)18.8%

Color previews

#cf189f text on a black background

contrast 4.28:1

Card sample

#cf189f text on a white background

contrast 4.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf189f

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.

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

#cf189f, answered

What color is #cf189f?

#cf189f is a balanced electric magenta / pink, closest to Medium Violet Red (ΔE2000 4.8). It sits at 316° on the hue wheel with 79% saturation and 45% lightness, which reads as warm.

What is the RGB value of #cf189f?

rgb(207, 24, 159) — 207 red, 24 green and 159 blue out of 255, or 81.2% / 9.4% / 62.4% by channel.

Is #cf189f a light or a dark color?

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

Should I use black or white text on #cf189f?

White. It scores 4.90:1 against #cf189f, versus 4.28:1 for black — AA at any size.

What is the complementary color of #cf189f?

#18CF48 sits directly opposite on the wheel. Softer options are the split-complements #44CF18 and #18CFA3, which give the same contrast with far less vibration.

What colors go well with #cf189f?

For interface work: #FAF4F9 as the surface, #EDC0E1 for borders, #9B4B86 for secondary text, #11BB13 as an accent and #720D58 for hover and pressed states. For a palette, the analogous pair #A318CF and #CF1844 stays calm, while #18CF48 is the loudest partner.

What is #cf189f in CMYK for printing?

cmyk(0%, 88%, 23%, 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 #cf189f warm or cool?

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

Work with #cf189f in the Color Lab