Skip to content

#ce42cf

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

RGB
206, 66, 207
HSL
300°, 60%, 54%
CMYK
1, 68, 0, 19
Luminance
0.2152

At a glance

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

Hex
#ce42cf
Hue
300°
magenta / pink
Saturation
60%
vivid
Lightness
54%
balanced
Brightness
81%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2152
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.30:1
Closest name
Medium Orchid
ΔE2000 4.1
Where it sits
Hue300° of 360°
Saturation60%
Lightness54%
Temperature
Warm ← → Cool50% 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#ce42cf
RGBrgb(206, 66, 207)
HSLhsl(300, 60%, 54%)
CMYKcmyk(1%, 68%, 0%, 19%)
LABlab(53.5 70.8 -45.1)
LCHlch(53.5 84.0 327.5)
OKLCHoklch(0.630 0.233 327.6)
Decimal13517519
Display P3color(display-p3 0.808 0.259 0.812)

Copy-ready code

/* CSS */
color: #ce42cf;
background-color: #ce42cf;
/* Tailwind (arbitrary) */
class="text-[#ce42cf] bg-[#ce42cf]"
/* SCSS */
$brand: #ce42cf;
/* SwiftUI */
Color(red: 0.808, green: 0.259, blue: 0.812)
/* Android */
Color.parseColor("#ce42cf")
/* Flutter */
Color(0xFFCE42CF)
/* Python / OpenCV (BGR) */
(207, 66, 206)

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

Accessibility — WCAG contrast

Aa
#ce42cf on white: 3.96:1
AA ✗ fail · AA-large · AAA
Aa
#ce42cf on black: 5.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2A74D3
deuteranopia · #6586CB
tritanopia · #D45784

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ce42cf is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF4FB
#F7E9F7
#EFCCEF
#E8A6E8
#DC79DD
#ce42cf
#C232C3
#A229A3
#822182
#5E1C5F
#3B113B
Base = 500Lightest = 50 · #FBF4FBDarkest = 950 · #3B113B
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F7E9F7;
  --brand-200: #EFCCEF;
  --brand-300: #E8A6E8;
  --brand-400: #DC79DD;
  --brand-500: #ce42cf;
  --brand-600: #C232C3;
  --brand-700: #A229A3;
  --brand-800: #822182;
  --brand-900: #5E1C5F;
  --brand-950: #3B113B;
  --brand: #ce42cf;
  --brand-ink: #000000;
}

Colors that work with #ce42cf

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#FAF4FA
Tinted page background
Border#ECC0ED
Hairlines and dividers
Muted text#9A4B9B
Captions on the surface
Accent#47A725
Second voice, not a rival
Dark variant#651A66
Hover, pressed, headers
Light variant#FAEBFA
Selected rows, tints
Dark surface#241424
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 #ce42cf

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

Works well for
  • Headings from 24px up 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
  • Small text on white — under 4.5:1
  • 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#43CF42
Analogous left#8742CF
Analogous right#CF4289
Split-complement 1#89CF42
Split-complement 2#42CF87
Triadic 1#CFCE42
Triadic 2#42CFCE
Tetradic#CF8742

RGB percentages

Red80.8%
Green25.9%
Blue81.2%

CMYK percentages

Cyan0.5%
Magenta68.1%
Yellow0.0%
Key (black)18.8%

Color previews

#ce42cf text on a black background

contrast 5.30:1

Card sample

#ce42cf text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce42cf

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.

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

#ce42cf, answered

What color is #ce42cf?

#ce42cf is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 4.1). It sits at 300° on the hue wheel with 60% saturation and 54% lightness, which reads as neutral.

What is the RGB value of #ce42cf?

rgb(206, 66, 207) — 206 red, 66 green and 207 blue out of 255, or 80.8% / 25.9% / 81.2% by channel.

Is #ce42cf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2152 and perceived brightness is 56%, so black text on it reaches 5.30:1.

Should I use black or white text on #ce42cf?

Black. It scores 5.30:1 against #ce42cf, versus 3.96:1 for white — AA at any size.

What is the complementary color of #ce42cf?

#43CF42 sits directly opposite on the wheel. Softer options are the split-complements #89CF42 and #42CF87, which give the same contrast with far less vibration.

What colors go well with #ce42cf?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #9A4B9B for secondary text, #47A725 as an accent and #651A66 for hover and pressed states. For a palette, the analogous pair #8742CF and #CF4289 stays calm, while #43CF42 is the loudest partner.

What is #ce42cf in CMYK for printing?

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

Is #ce42cf warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF429C; nudged cooler, #9B40D1.

Work with #ce42cf in the Color Lab