Skip to content

#cf138f

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

RGB
207, 19, 143
HSL
320°, 83%, 44%
CMYK
0, 91, 31, 19
Luminance
0.1571

At a glance

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

Hex
#cf138f
Hue
320°
magenta / pink
Saturation
83%
electric
Lightness
44%
dark
Brightness
81%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1571
WCAG relative
Temperature
Warm
39/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.07:1
Closest name
Medium Violet Red
ΔE2000 2.1
Where it sits
Hue320° of 360°
Saturation83%
Lightness44%
Temperature
Warm ← → Cool39% 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#cf138f
RGBrgb(207, 19, 143)
HSLhsl(320, 83%, 44%)
CMYKcmyk(0%, 91%, 31%, 19%)
LABlab(46.6 74.1 -18.3)
LCHlch(46.6 76.3 346.1)
OKLCHoklch(0.571 0.232 348.0)
Decimal13570959
Display P3color(display-p3 0.812 0.075 0.561)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf138f on white: 5.07:1
AA ✓ pass · AA-large · AAA
Aa
#cf138f on black: 4.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3C5B92
deuteranopia · #73798B
tritanopia · #DE0055

Color scale — 50 to 950

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

#FCF2F9
#FAE6F3
#F6C6E6
#F698D6
#F165C1
#EC31AD
#cf138f
#BB1181
#950E67
#6C0E4C
#440930
Base = 600Lightest = 50 · #FCF2F9Darkest = 950 · #440930
:root {
  --brand-50: #FCF2F9;
  --brand-100: #FAE6F3;
  --brand-200: #F6C6E6;
  --brand-300: #F698D6;
  --brand-400: #F165C1;
  --brand-500: #EC31AD;
  --brand-600: #cf138f;
  --brand-700: #BB1181;
  --brand-800: #950E67;
  --brand-900: #6C0E4C;
  --brand-950: #440930;
  --brand: #cf138f;
  --brand-ink: #ffffff;
}

Colors that work with #cf138f

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#FAF4F8
Tinted page background
Border#EDC0DD
Hairlines and dividers
Muted text#9B4B80
Captions on the surface
Accent#0DBF1D
Second voice, not a rival
Dark variant#750B51
Hover, pressed, headers
Light variant#FDE8F6
Selected rows, tints
Dark surface#24141F
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 #cf138f

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#13CF53
Analogous left#B113CF
Analogous right#CF1331
Split-complement 1#31CF13
Split-complement 2#13CFB1
Triadic 1#8FCF13
Triadic 2#138FCF
Tetradic#CFB113

RGB percentages

Red81.2%
Green7.5%
Blue56.1%

CMYK percentages

Cyan0.0%
Magenta90.8%
Yellow30.9%
Key (black)18.8%

Color previews

#cf138f text on a black background

contrast 4.14:1

Card sample

#cf138f text on a white background

contrast 5.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf138f

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.

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

#cf138f, answered

What color is #cf138f?

#cf138f is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 2.1). It sits at 320° on the hue wheel with 83% saturation and 44% lightness, which reads as warm.

What is the RGB value of #cf138f?

rgb(207, 19, 143) — 207 red, 19 green and 143 blue out of 255, or 81.2% / 7.5% / 56.1% by channel.

Is #cf138f a light or a dark color?

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

Should I use black or white text on #cf138f?

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

What is the complementary color of #cf138f?

#13CF53 sits directly opposite on the wheel. Softer options are the split-complements #31CF13 and #13CFB1, which give the same contrast with far less vibration.

What colors go well with #cf138f?

For interface work: #FAF4F8 as the surface, #EDC0DD for borders, #9B4B80 for secondary text, #0DBF1D as an accent and #750B51 for hover and pressed states. For a palette, the analogous pair #B113CF and #CF1331 stays calm, while #13CF53 is the loudest partner.

What is #cf138f in CMYK for printing?

cmyk(0%, 91%, 31%, 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 #cf138f warm or cool?

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

Work with #cf138f in the Color Lab