Skip to content

#c702af

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

RGB
199, 2, 175
HSL
307°, 98%, 39%
CMYK
0, 99, 12, 22
Luminance
0.1528

At a glance

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

Hex
#c702af
Hue
307°
magenta / pink
Saturation
98%
electric
Lightness
39%
dark
Brightness
78%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1528
WCAG relative
Temperature
Neutral
46/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.18:1
Closest name
Medium Violet Red
ΔE2000 8
Where it sits
Hue307° of 360°
Saturation98%
Lightness39%
Temperature
Warm ← → Cool46% 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#c702af
RGBrgb(199, 2, 175)
HSLhsl(307, 98%, 39%)
CMYKcmyk(0%, 99%, 12%, 22%)
LABlab(46.0 78.0 -38.5)
LCHlch(46.0 87.0 333.7)
OKLCHoklch(0.569 0.252 335.2)
Decimal13042351
Display P3color(display-p3 0.780 0.008 0.686)

Copy-ready code

/* CSS */
color: #c702af;
background-color: #c702af;
/* Tailwind (arbitrary) */
class="text-[#c702af] bg-[#c702af]"
/* SCSS */
$brand: #c702af;
/* SwiftUI */
Color(red: 0.780, green: 0.008, blue: 0.686)
/* Android */
Color.parseColor("#c702af")
/* Flutter */
Color(0xFFC702AF)
/* Python / OpenCV (BGR) */
(175, 2, 199)

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

Accessibility — WCAG contrast

Aa
#c702af on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#c702af on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DB3
deuteranopia · #5E76AB
tritanopia · #D12666

Color scale — 50 to 950

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

#FDF1FC
#FCE3F9
#FBC1F4
#FE90F1
#FD58E9
#FD21E2
#F202D5
#c702af
#A2028E
#740667
#490440
Base = 700Lightest = 50 · #FDF1FCDarkest = 950 · #490440
:root {
  --brand-50: #FDF1FC;
  --brand-100: #FCE3F9;
  --brand-200: #FBC1F4;
  --brand-300: #FE90F1;
  --brand-400: #FD58E9;
  --brand-500: #FD21E2;
  --brand-600: #F202D5;
  --brand-700: #c702af;
  --brand-800: #A2028E;
  --brand-900: #740667;
  --brand-950: #490440;
  --brand: #c702af;
  --brand-ink: #ffffff;
}

Colors that work with #c702af

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#FAF4FA
Tinted page background
Border#EDC0E7
Hairlines and dividers
Muted text#9B4B91
Captions on the surface
Accent#1BCC00
Second voice, not a rival
Dark variant#7E016F
Hover, pressed, headers
Light variant#FFE6FC
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 #c702af

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#02C71A
Analogous left#7C02C7
Analogous right#C7024D
Split-complement 1#4DC702
Split-complement 2#02C77C
Triadic 1#AFC702
Triadic 2#02AFC7
Tetradic#C77C02

RGB percentages

Red78.0%
Green0.8%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta99.0%
Yellow12.1%
Key (black)22.0%

Color previews

#c702af text on a black background

contrast 4.06:1

Card sample

#c702af text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(199, 2, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 2, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c702af;
background: linear-gradient(135deg, #c702af, #C7022C);

Monochromatic scale

Palettes built from #c702af

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.

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

#c702af, answered

What color is #c702af?

#c702af is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 8). It sits at 307° on the hue wheel with 98% saturation and 39% lightness, which reads as neutral.

What is the RGB value of #c702af?

rgb(199, 2, 175) — 199 red, 2 green and 175 blue out of 255, or 78% / 0.8% / 68.6% by channel.

Is #c702af a light or a dark color?

It is a dark color. Relative luminance is 0.1528 and perceived brightness is 49%, so white text on it reaches 5.18:1.

Should I use black or white text on #c702af?

White. It scores 5.18:1 against #c702af, versus 4.06:1 for black — AA at any size.

What is the complementary color of #c702af?

#02C71A sits directly opposite on the wheel. Softer options are the split-complements #4DC702 and #02C77C, which give the same contrast with far less vibration.

What colors go well with #c702af?

For interface work: #FAF4FA as the surface, #EDC0E7 for borders, #9B4B91 for secondary text, #1BCC00 as an accent and #7E016F for hover and pressed states. For a palette, the analogous pair #7C02C7 and #C7024D stays calm, while #02C71A is the loudest partner.

What is #c702af in CMYK for printing?

cmyk(0%, 99%, 12%, 22%). 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 #c702af warm or cool?

Neutral — it scores 46 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C70267; nudged cooler, #9800C9.

Work with #c702af in the Color Lab