Skip to content

#c01fa2

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

RGB
192, 31, 162
HSL
311°, 72%, 44%
CMYK
0, 84, 16, 25
Luminance
0.1480

At a glance

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

Hex
#c01fa2
Hue
311°
magenta / pink
Saturation
72%
vivid
Lightness
44%
dark
Brightness
75%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1480
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.30:1
Closest name
Medium Violet Red
ΔE2000 6.2
Where it sits
Hue311° of 360°
Saturation72%
Lightness44%
Temperature
Warm ← → Cool44% 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#c01fa2
RGBrgb(192, 31, 162)
HSLhsl(311, 72%, 44%)
CMYKcmyk(0%, 84%, 16%, 25%)
LABlab(45.4 71.2 -31.9)
LCHlch(45.4 78.0 335.9)
OKLCHoklch(0.559 0.228 337.6)
Decimal12591010
Display P3color(display-p3 0.753 0.122 0.635)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c01fa2 on white: 5.30:1
AA ✓ pass · AA-large · AAA
Aa
#c01fa2 on black: 3.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #275CA5
deuteranopia · #62749F
tritanopia · #CB2C62

Color scale — 50 to 950

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

#FCF3FA
#F8E7F5
#F3C9EB
#EF9EE0
#E86ED1
#E03EC2
#D322B2
#c01fa2
#8D1777
#661557
#400D36
Base = 700Lightest = 50 · #FCF3FADarkest = 950 · #400D36
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F5;
  --brand-200: #F3C9EB;
  --brand-300: #EF9EE0;
  --brand-400: #E86ED1;
  --brand-500: #E03EC2;
  --brand-600: #D322B2;
  --brand-700: #c01fa2;
  --brand-800: #8D1777;
  --brand-900: #661557;
  --brand-950: #400D36;
  --brand: #c01fa2;
  --brand-ink: #ffffff;
}

Colors that work with #c01fa2

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#EDC0E4
Hairlines and dividers
Muted text#9B4B8C
Captions on the surface
Accent#22B319
Second voice, not a rival
Dark variant#6E125D
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 #c01fa2

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#1FC03D
Analogous left#8D1FC0
Analogous right#C01F51
Split-complement 1#51C01F
Split-complement 2#1FC08D
Triadic 1#A2C01F
Triadic 2#1FA2C0
Tetradic#C08D1F

RGB percentages

Red75.3%
Green12.2%
Blue63.5%

CMYK percentages

Cyan0.0%
Magenta83.9%
Yellow15.6%
Key (black)24.7%

Color previews

#c01fa2 text on a black background

contrast 3.96:1

Card sample

#c01fa2 text on a white background

contrast 5.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c01fa2

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.

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

#c01fa2, answered

What color is #c01fa2?

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

What is the RGB value of #c01fa2?

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

Is #c01fa2 a light or a dark color?

It is a dark color. Relative luminance is 0.1480 and perceived brightness is 47%, so white text on it reaches 5.30:1.

Should I use black or white text on #c01fa2?

White. It scores 5.30:1 against #c01fa2, versus 3.96:1 for black — AA at any size.

What is the complementary color of #c01fa2?

#1FC03D sits directly opposite on the wheel. Softer options are the split-complements #51C01F and #1FC08D, which give the same contrast with far less vibration.

What colors go well with #c01fa2?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8C for secondary text, #22B319 as an accent and #6E125D for hover and pressed states. For a palette, the analogous pair #8D1FC0 and #C01F51 stays calm, while #1FC03D is the loudest partner.

What is #c01fa2 in CMYK for printing?

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

Is #c01fa2 warm or cool?

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

Work with #c01fa2 in the Color Lab