Skip to content

#c01faf

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

RGB
192, 31, 175
HSL
306°, 72%, 44%
CMYK
0, 84, 9, 25
Luminance
0.1528

At a glance

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

Hex
#c01faf
Hue
306°
magenta / pink
Saturation
72%
vivid
Lightness
44%
dark
Brightness
75%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1528
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.18:1
Closest name
Medium Violet Red
ΔE2000 8.4
Where it sits
Hue306° of 360°
Saturation72%
Lightness44%
Temperature
Warm ← → Cool47% 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#c01faf
RGBrgb(192, 31, 175)
HSLhsl(306, 72%, 44%)
CMYKcmyk(0%, 84%, 9%, 25%)
LABlab(46.0 73.0 -38.6)
LCHlch(46.0 82.5 332.1)
OKLCHoklch(0.566 0.236 333.4)
Decimal12591023
Display P3color(display-p3 0.753 0.122 0.686)

Copy-ready code

/* CSS */
color: #c01faf;
background-color: #c01faf;
/* Tailwind (arbitrary) */
class="text-[#c01faf] bg-[#c01faf]"
/* SCSS */
$brand: #c01faf;
/* SwiftUI */
Color(red: 0.753, green: 0.122, blue: 0.686)
/* Android */
Color.parseColor("#c01faf")
/* Flutter */
Color(0xFFC01FAF)
/* Python / OpenCV (BGR) */
(175, 31, 192)

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 #c01faf · 5.18:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.18:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.06:1
AA fail · AA large pass · AAA fail
Reading the other direction: #c01faf as text scores 5.18:1 on white and 4.06:1 on black.

Accessibility — WCAG contrast

Aa
#c01faf on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#c01faf on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #145FB3
deuteranopia · #5C75AB
tritanopia · #C93469

Color scale — 50 to 950

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

#FCF3FB
#F8E7F7
#F3C9EE
#EF9EE7
#E86EDB
#E03ECF
#D322C0
#c01faf
#8D1780
#66155D
#400D3A
Base = 700Lightest = 50 · #FCF3FBDarkest = 950 · #400D3A
:root {
  --brand-50: #FCF3FB;
  --brand-100: #F8E7F7;
  --brand-200: #F3C9EE;
  --brand-300: #EF9EE7;
  --brand-400: #E86EDB;
  --brand-500: #E03ECF;
  --brand-600: #D322C0;
  --brand-700: #c01faf;
  --brand-800: #8D1780;
  --brand-900: #66155D;
  --brand-950: #400D3A;
  --brand: #c01faf;
  --brand-ink: #ffffff;
}

Colors that work with #c01faf

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#FAF4FA
Tinted page background
Border#EDC0E8
Hairlines and dividers
Muted text#9B4B92
Captions on the surface
Accent#2FB319
Second voice, not a rival
Dark variant#6E1264
Hover, pressed, headers
Light variant#FBE9FA
Selected rows, tints
Dark surface#241423
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 #c01faf

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#1FC030
Analogous left#801FC0
Analogous right#C01F5F
Split-complement 1#5FC01F
Split-complement 2#1FC080
Triadic 1#AFC01F
Triadic 2#1FAFC0
Tetradic#C0801F

RGB percentages

Red75.3%
Green12.2%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta83.9%
Yellow8.9%
Key (black)24.7%

Color previews

#c01faf text on a black background

contrast 4.06:1

Card sample

#c01faf text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 31, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 31, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c01faf;
background: linear-gradient(135deg, #c01faf, #C01F44);

Monochromatic scale

Palettes built from #c01faf

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.

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

#c01faf, answered

What color is #c01faf?

#c01faf is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 8.4). It sits at 306° on the hue wheel with 72% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #c01faf?

rgb(192, 31, 175) — 192 red, 31 green and 175 blue out of 255, or 75.3% / 12.2% / 68.6% by channel.

Is #c01faf a light or a dark color?

It is a dark color. Relative luminance is 0.1528 and perceived brightness is 48%, so white text on it reaches 5.18:1.

Should I use black or white text on #c01faf?

White. It scores 5.18:1 against #c01faf, versus 4.06:1 for black — AA at any size.

What is the complementary color of #c01faf?

#1FC030 sits directly opposite on the wheel. Softer options are the split-complements #5FC01F and #1FC080, which give the same contrast with far less vibration.

What colors go well with #c01faf?

For interface work: #FAF4FA as the surface, #EDC0E8 for borders, #9B4B92 for secondary text, #2FB319 as an accent and #6E1264 for hover and pressed states. For a palette, the analogous pair #801FC0 and #C01F5F stays calm, while #1FC030 is the loudest partner.

What is #c01faf in CMYK for printing?

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

Is #c01faf warm or cool?

Neutral — it scores 47 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C01F74; nudged cooler, #971DC2.

Work with #c01faf in the Color Lab