Skip to content

#9c02a2

a dark, electric magenta / pink · neutral · closest name: Dark Magenta

RGB
156, 2, 162
HSL
298°, 98%, 32%
CMYK
4, 99, 0, 37
Luminance
0.0972

At a glance

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

Hex
#9c02a2
Hue
298°
magenta / pink
Saturation
98%
electric
Lightness
32%
dark
Brightness
64%
HSV value
Perceived
40%
weighted brightness
Luminance
0.0972
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
7.13:1
Closest name
Dark Magenta
ΔE2000 4.4
Where it sits
Hue298° of 360°
Saturation98%
Lightness32%
Temperature
Warm ← → Cool51% 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#9c02a2
RGBrgb(156, 2, 162)
HSLhsl(298, 98%, 32%)
CMYKcmyk(4%, 99%, 0%, 37%)
LABlab(37.3 68.7 -45.0)
LCHlch(37.3 82.2 326.8)
OKLCHoklch(0.491 0.227 326.4)
Decimal10224290
Display P3color(display-p3 0.612 0.008 0.635)

Copy-ready code

/* CSS */
color: #9c02a2;
background-color: #9c02a2;
/* Tailwind (arbitrary) */
class="text-[#9c02a2] bg-[#9c02a2]"
/* SCSS */
$brand: #9c02a2;
/* SwiftUI */
Color(red: 0.612, green: 0.008, blue: 0.635)
/* Android */
Color.parseColor("#9c02a2")
/* Flutter */
Color(0xFF9C02A2)
/* Python / OpenCV (BGR) */
(162, 2, 156)

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 #9c02a2 · 7.13:1
Use #ffffffAAA at every size.
Aa
White text · 7.13:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.94:1
AA fail · AA large fail · AAA fail
Reading the other direction: #9c02a2 as text scores 7.13:1 on white and 2.94:1 on black.

Accessibility — WCAG contrast

Aa
#9c02a2 on white: 7.13:1
AA ✓ pass · AA-large · AAA
Aa
#9c02a2 on black: 2.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DA5
deuteranopia · #395D9F
tritanopia · #A02E5E

Color scale — 50 to 950

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

#FDF1FD
#FBE4FC
#F9C1FB
#FA90FE
#F759FD
#F421FC
#E903F2
#C202CA
#9c02a2
#700674
#460449
Base = 800Lightest = 50 · #FDF1FDDarkest = 950 · #460449
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FBE4FC;
  --brand-200: #F9C1FB;
  --brand-300: #FA90FE;
  --brand-400: #F759FD;
  --brand-500: #F421FC;
  --brand-600: #E903F2;
  --brand-700: #C202CA;
  --brand-800: #9c02a2;
  --brand-900: #700674;
  --brand-950: #460449;
  --brand: #9c02a2;
  --brand-ink: #ffffff;
}

Colors that work with #9c02a2

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#EBC0ED
Hairlines and dividers
Muted text#984B9B
Captions on the surface
Accent#2FA400
Second voice, not a rival
Dark variant#79027E
Hover, pressed, headers
Light variant#FEE6FF
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 #9c02a2

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
  • Text on black or near-black surfaces
  • 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#08A202
Analogous left#4C02A2
Analogous right#A20258
Split-complement 1#58A202
Split-complement 2#02A24C
Triadic 1#A29C02
Triadic 2#02A29C
Tetradic#A24C02

RGB percentages

Red61.2%
Green0.8%
Blue63.5%

CMYK percentages

Cyan3.7%
Magenta98.8%
Yellow0.0%
Key (black)36.5%

Color previews

#9c02a2 text on a black background

contrast 2.94:1

Card sample

#9c02a2 text on a white background

contrast 7.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(156, 2, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(156, 2, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9c02a2;
background: linear-gradient(135deg, #9c02a2, #A2023D);

Monochromatic scale

Palettes built from #9c02a2

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.

#9c02a2 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.

#9c02a2, answered

What color is #9c02a2?

#9c02a2 is a dark electric magenta / pink, closest to Dark Magenta (ΔE2000 4.4). It sits at 298° on the hue wheel with 98% saturation and 32% lightness, which reads as neutral.

What is the RGB value of #9c02a2?

rgb(156, 2, 162) — 156 red, 2 green and 162 blue out of 255, or 61.2% / 0.8% / 63.5% by channel.

Is #9c02a2 a light or a dark color?

It is a dark color. Relative luminance is 0.0972 and perceived brightness is 40%, so white text on it reaches 7.13:1.

Should I use black or white text on #9c02a2?

White. It scores 7.13:1 against #9c02a2, versus 2.94:1 for black — AAA at any size.

What is the complementary color of #9c02a2?

#08A202 sits directly opposite on the wheel. Softer options are the split-complements #58A202 and #02A24C, which give the same contrast with far less vibration.

What colors go well with #9c02a2?

For interface work: #FAF4FA as the surface, #EBC0ED for borders, #984B9B for secondary text, #2FA400 as an accent and #79027E for hover and pressed states. For a palette, the analogous pair #4C02A2 and #A20258 stays calm, while #08A202 is the loudest partner.

What is #9c02a2 in CMYK for printing?

cmyk(4%, 99%, 0%, 37%). 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 #9c02a2 warm or cool?

Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A2026D; nudged cooler, #6200A4.

Work with #9c02a2 in the Color Lab