Skip to content

#cf23ab

a balanced, vivid magenta / pink · neutral · closest name: Medium Violet Red

RGB
207, 35, 171
HSL
313°, 71%, 48%
CMYK
0, 83, 17, 19
Luminance
0.1741

At a glance

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

Hex
#cf23ab
Hue
313°
magenta / pink
Saturation
71%
vivid
Lightness
48%
balanced
Brightness
81%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1741
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.69:1
Closest name
Medium Violet Red
ΔE2000 7
Where it sits
Hue313° of 360°
Saturation71%
Lightness48%
Temperature
Warm ← → Cool43% 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#cf23ab
RGBrgb(207, 35, 171)
HSLhsl(313, 71%, 48%)
CMYKcmyk(0%, 83%, 17%, 19%)
LABlab(48.8 74.6 -31.7)
LCHlch(48.8 81.1 337.0)
OKLCHoklch(0.590 0.238 338.8)
Decimal13575083
Display P3color(display-p3 0.812 0.137 0.671)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf23ab on white: 4.69:1
AA ✓ pass · AA-large · AAA
Aa
#cf23ab on black: 4.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3063AE
deuteranopia · #6C7DA7
tritanopia · #DB2E68

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cf23ab 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
#F8E7F5
#F3C9EA
#EF9FDE
#E76FCE
#DF3FBD
#cf23ab
#AF1D90
#8C1873
#651554
#3F0D35
Base = 600Lightest = 50 · #FCF3FADarkest = 950 · #3F0D35
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F5;
  --brand-200: #F3C9EA;
  --brand-300: #EF9FDE;
  --brand-400: #E76FCE;
  --brand-500: #DF3FBD;
  --brand-600: #cf23ab;
  --brand-700: #AF1D90;
  --brand-800: #8C1873;
  --brand-900: #651554;
  --brand-950: #3F0D35;
  --brand: #cf23ab;
  --brand-ink: #ffffff;
}

Colors that work with #cf23ab

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#EDC0E3
Hairlines and dividers
Muted text#9B4B8A
Captions on the surface
Accent#1FB319
Second voice, not a rival
Dark variant#6D125A
Hover, pressed, headers
Light variant#FBE9F8
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 #cf23ab

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#23CF47
Analogous left#9D23CF
Analogous right#CF2355
Split-complement 1#55CF23
Split-complement 2#23CF9D
Triadic 1#ABCF23
Triadic 2#23ABCF
Tetradic#CF9D23

RGB percentages

Red81.2%
Green13.7%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta83.1%
Yellow17.4%
Key (black)18.8%

Color previews

#cf23ab text on a black background

contrast 4.48:1

Card sample

#cf23ab text on a white background

contrast 4.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf23ab

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.

#cf23ab 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

Converts to four-color process without much drama. Proof it anyway.

#cf23ab, answered

What color is #cf23ab?

#cf23ab is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 7). It sits at 313° on the hue wheel with 71% saturation and 48% lightness, which reads as neutral.

What is the RGB value of #cf23ab?

rgb(207, 35, 171) — 207 red, 35 green and 171 blue out of 255, or 81.2% / 13.7% / 67.1% by channel.

Is #cf23ab a light or a dark color?

It is a dark color. Relative luminance is 0.1741 and perceived brightness is 51%, so white text on it reaches 4.69:1.

Should I use black or white text on #cf23ab?

White. It scores 4.69:1 against #cf23ab, versus 4.48:1 for black — AA at any size.

What is the complementary color of #cf23ab?

#23CF47 sits directly opposite on the wheel. Softer options are the split-complements #55CF23 and #23CF9D, which give the same contrast with far less vibration.

What colors go well with #cf23ab?

For interface work: #FAF4F9 as the surface, #EDC0E3 for borders, #9B4B8A for secondary text, #1FB319 as an accent and #6D125A for hover and pressed states. For a palette, the analogous pair #9D23CF and #CF2355 stays calm, while #23CF47 is the loudest partner.

What is #cf23ab in CMYK for printing?

cmyk(0%, 83%, 17%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cf23ab warm or cool?

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

Work with #cf23ab in the Color Lab