Skip to content

#c042ab

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

RGB
192, 66, 171
HSL
310°, 50%, 51%
CMYK
0, 66, 11, 25
Luminance
0.1804

At a glance

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

Hex
#c042ab
Hue
310°
magenta / pink
Saturation
50%
vivid
Lightness
51%
balanced
Brightness
75%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1804
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.61:1
Closest name
Medium Orchid
ΔE2000 8
Where it sits
Hue310° of 360°
Saturation50%
Lightness51%
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#c042ab
RGBrgb(192, 66, 171)
HSLhsl(310, 50%, 51%)
CMYKcmyk(0%, 66%, 11%, 25%)
LABlab(49.5 61.8 -30.7)
LCHlch(49.5 69.0 333.6)
OKLCHoklch(0.591 0.198 335.1)
Decimal12599979
Display P3color(display-p3 0.753 0.259 0.671)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c042ab on white: 4.56:1
AA ✓ pass · AA-large · AAA
Aa
#c042ab on black: 4.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #426AAE
deuteranopia · #6B7DA8
tritanopia · #C94B71

Color scale — 50 to 950

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

#FAF4F9
#F6EAF4
#ECCFE8
#E3ABDA
#D581C7
#C757B4
#c042ab
#993388
#7A296D
#592150
#381532
Base = 600Lightest = 50 · #FAF4F9Darkest = 950 · #381532
:root {
  --brand-50: #FAF4F9;
  --brand-100: #F6EAF4;
  --brand-200: #ECCFE8;
  --brand-300: #E3ABDA;
  --brand-400: #D581C7;
  --brand-500: #C757B4;
  --brand-600: #c042ab;
  --brand-700: #993388;
  --brand-800: #7A296D;
  --brand-900: #592150;
  --brand-950: #381532;
  --brand: #c042ab;
  --brand-ink: #000000;
}

Colors that work with #c042ab

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4F9
Tinted page background
Border#EBC2E4
Hairlines and dividers
Muted text#9B4B8E
Captions on the surface
Accent#389D2F
Second voice, not a rival
Dark variant#602055
Hover, pressed, headers
Light variant#F9ECF7
Selected rows, tints
Dark surface#241422
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 #c042ab

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#42C057
Analogous left#9642C0
Analogous right#C0426C
Split-complement 1#6CC042
Split-complement 2#42C096
Triadic 1#ABC042
Triadic 2#42ABC0
Tetradic#C09642

RGB percentages

Red75.3%
Green25.9%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta65.6%
Yellow10.9%
Key (black)24.7%

Color previews

#c042ab text on a black background

contrast 4.61:1

Card sample

#c042ab text on a white background

contrast 4.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c042ab

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.

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

#c042ab, answered

What color is #c042ab?

#c042ab is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 8). It sits at 310° on the hue wheel with 50% saturation and 51% lightness, which reads as neutral.

What is the RGB value of #c042ab?

rgb(192, 66, 171) — 192 red, 66 green and 171 blue out of 255, or 75.3% / 25.9% / 67.1% by channel.

Is #c042ab a light or a dark color?

It is a mid-tone. Relative luminance is 0.1804 and perceived brightness is 51%, so black text on it reaches 4.61:1.

Should I use black or white text on #c042ab?

Black. It scores 4.61:1 against #c042ab, versus 4.56:1 for white — AA at any size.

What is the complementary color of #c042ab?

#42C057 sits directly opposite on the wheel. Softer options are the split-complements #6CC042 and #42C096, which give the same contrast with far less vibration.

What colors go well with #c042ab?

For interface work: #FAF4F9 as the surface, #EBC2E4 for borders, #9B4B8E for secondary text, #389D2F as an accent and #602055 for hover and pressed states. For a palette, the analogous pair #9642C0 and #C0426C stays calm, while #42C057 is the loudest partner.

What is #c042ab in CMYK for printing?

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

Is #c042ab 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 #C0427D; nudged cooler, #A840C3.

Work with #c042ab in the Color Lab