Skip to content

#c0158c

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

RGB
192, 21, 140
HSL
318°, 80%, 42%
CMYK
0, 89, 27, 25
Luminance
0.1364

At a glance

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

Hex
#c0158c
Hue
318°
magenta / pink
Saturation
80%
electric
Lightness
42%
dark
Brightness
75%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1364
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.63:1
Closest name
Medium Violet Red
ΔE2000 2.5
Where it sits
Hue318° of 360°
Saturation80%
Lightness42%
Temperature
Warm ← → Cool40% 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#c0158c
RGBrgb(192, 21, 140)
HSLhsl(318, 80%, 42%)
CMYKcmyk(0%, 89%, 27%, 25%)
LABlab(43.7 70.3 -21.2)
LCHlch(43.7 73.4 343.2)
OKLCHoklch(0.544 0.221 345.2)
Decimal12588428
Display P3color(display-p3 0.753 0.082 0.549)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0158c on white: 5.63:1
AA ✓ pass · AA-large · AAA
Aa
#c0158c on black: 3.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #34568F
deuteranopia · #697189
tritanopia · #CE0E53

Color scale — 50 to 950

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

#FCF3F9
#F9E6F3
#F5C6E7
#F49AD9
#EE67C5
#E935B2
#DD18A1
#c0158c
#93106B
#6A104F
#430A31
Base = 700Lightest = 50 · #FCF3F9Darkest = 950 · #430A31
:root {
  --brand-50: #FCF3F9;
  --brand-100: #F9E6F3;
  --brand-200: #F5C6E7;
  --brand-300: #F49AD9;
  --brand-400: #EE67C5;
  --brand-500: #E935B2;
  --brand-600: #DD18A1;
  --brand-700: #c0158c;
  --brand-800: #93106B;
  --brand-900: #6A104F;
  --brand-950: #430A31;
  --brand: #c0158c;
  --brand-ink: #ffffff;
}

Colors that work with #c0158c

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#EDC0DF
Hairlines and dividers
Muted text#9B4B83
Captions on the surface
Accent#10BC19
Second voice, not a rival
Dark variant#730D54
Hover, pressed, headers
Light variant#FCE8F6
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 #c0158c

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#15C049
Analogous left#9F15C0
Analogous right#C01537
Split-complement 1#37C015
Split-complement 2#15C09F
Triadic 1#8CC015
Triadic 2#158CC0
Tetradic#C09F15

RGB percentages

Red75.3%
Green8.2%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta89.1%
Yellow27.1%
Key (black)24.7%

Color previews

#c0158c text on a black background

contrast 3.73:1

Card sample

#c0158c text on a white background

contrast 5.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c0158c

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.

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

#c0158c, answered

What color is #c0158c?

#c0158c is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 2.5). It sits at 318° on the hue wheel with 80% saturation and 42% lightness, which reads as warm.

What is the RGB value of #c0158c?

rgb(192, 21, 140) — 192 red, 21 green and 140 blue out of 255, or 75.3% / 8.2% / 54.9% by channel.

Is #c0158c a light or a dark color?

It is a dark color. Relative luminance is 0.1364 and perceived brightness is 46%, so white text on it reaches 5.63:1.

Should I use black or white text on #c0158c?

White. It scores 5.63:1 against #c0158c, versus 3.73:1 for black — AA at any size.

What is the complementary color of #c0158c?

#15C049 sits directly opposite on the wheel. Softer options are the split-complements #37C015 and #15C09F, which give the same contrast with far less vibration.

What colors go well with #c0158c?

For interface work: #FAF4F9 as the surface, #EDC0DF for borders, #9B4B83 for secondary text, #10BC19 as an accent and #730D54 for hover and pressed states. For a palette, the analogous pair #9F15C0 and #C01537 stays calm, while #15C049 is the loudest partner.

What is #c0158c in CMYK for printing?

cmyk(0%, 89%, 27%, 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 #c0158c warm or cool?

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

Work with #c0158c in the Color Lab