Skip to content

#c01a5f

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

RGB
192, 26, 95
HSL
335°, 76%, 43%
CMYK
0, 87, 51, 25
Luminance
0.1277

At a glance

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

Hex
#c01a5f
Hue
335°
magenta / pink
Saturation
76%
electric
Lightness
43%
dark
Brightness
75%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1277
WCAG relative
Temperature
Warm
30/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.91:1
Closest name
Medium Violet Red
ΔE2000 8.5
Where it sits
Hue335° of 360°
Saturation76%
Lightness43%
Temperature
Warm ← → Cool30% 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#c01a5f
RGBrgb(192, 26, 95)
HSLhsl(335, 76%, 43%)
CMYKcmyk(0%, 87%, 51%, 25%)
LABlab(42.4 65.0 4.8)
LCHlch(42.4 65.2 4.2)
OKLCHoklch(0.530 0.200 3.7)
Decimal12589663
Display P3color(display-p3 0.753 0.102 0.373)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c01a5f on white: 5.91:1
AA ✓ pass · AA-large · AAA
Aa
#c01a5f on black: 3.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4A5060
deuteranopia · #756F5B
tritanopia · #D1003B

Color scale — 50 to 950

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

#FCF3F7
#F9E7EE
#F4C8DA
#F29CC0
#EB6BA0
#E43980
#D81D6B
#c01a5f
#901447
#681236
#410B22
Base = 700Lightest = 50 · #FCF3F7Darkest = 950 · #410B22
:root {
  --brand-50: #FCF3F7;
  --brand-100: #F9E7EE;
  --brand-200: #F4C8DA;
  --brand-300: #F29CC0;
  --brand-400: #EB6BA0;
  --brand-500: #E43980;
  --brand-600: #D81D6B;
  --brand-700: #c01a5f;
  --brand-800: #901447;
  --brand-900: #681236;
  --brand-950: #410B22;
  --brand: #c01a5f;
  --brand-ink: #ffffff;
}

Colors that work with #c01a5f

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#FAF4F7
Tinted page background
Border#EDC0D2
Hairlines and dividers
Muted text#9B4B6C
Captions on the surface
Accent#15B74B
Second voice, not a rival
Dark variant#700F38
Hover, pressed, headers
Light variant#FCE9F1
Selected rows, tints
Dark surface#24141B
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 #c01a5f

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#1AC07B
Analogous left#C01AB2
Analogous right#C0281A
Split-complement 1#1AC028
Split-complement 2#1AB2C0
Triadic 1#5FC01A
Triadic 2#1A5FC0
Tetradic#B2C01A

RGB percentages

Red75.3%
Green10.2%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta86.5%
Yellow50.5%
Key (black)24.7%

Color previews

#c01a5f text on a black background

contrast 3.55:1

Card sample

#c01a5f text on a white background

contrast 5.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c01a5f

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.

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

#c01a5f, answered

What color is #c01a5f?

#c01a5f is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 8.5). It sits at 335° on the hue wheel with 76% saturation and 43% lightness, which reads as warm.

What is the RGB value of #c01a5f?

rgb(192, 26, 95) — 192 red, 26 green and 95 blue out of 255, or 75.3% / 10.2% / 37.3% by channel.

Is #c01a5f a light or a dark color?

It is a dark color. Relative luminance is 0.1277 and perceived brightness is 44%, so white text on it reaches 5.91:1.

Should I use black or white text on #c01a5f?

White. It scores 5.91:1 against #c01a5f, versus 3.55:1 for black — AA at any size.

What is the complementary color of #c01a5f?

#1AC07B sits directly opposite on the wheel. Softer options are the split-complements #1AC028 and #1AB2C0, which give the same contrast with far less vibration.

What colors go well with #c01a5f?

For interface work: #FAF4F7 as the surface, #EDC0D2 for borders, #9B4B6C for secondary text, #15B74B as an accent and #700F38 for hover and pressed states. For a palette, the analogous pair #C01AB2 and #C0281A stays calm, while #1AC07B is the loudest partner.

What is #c01a5f in CMYK for printing?

cmyk(0%, 87%, 51%, 25%). 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 #c01a5f warm or cool?

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

Work with #c01a5f in the Color Lab