Skip to content

#7f0366

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

RGB
127, 3, 102
HSL
312°, 95%, 26%
CMYK
0, 98, 20, 50
Luminance
0.0554

At a glance

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

Hex
#7f0366
Hue
312°
magenta / pink
Saturation
95%
electric
Lightness
26%
dark
Brightness
50%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0554
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
9.97:1
Closest name
Purple
ΔE2000 5.5
Where it sits
Hue312° of 360°
Saturation95%
Lightness26%
Temperature
Warm ← → Cool43% 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#7f0366
RGBrgb(127, 3, 102)
HSLhsl(312, 95%, 26%)
CMYKcmyk(0%, 98%, 20%, 50%)
LABlab(28.2 54.4 -22.4)
LCHlch(28.2 58.9 337.7)
OKLCHoklch(0.405 0.174 339.6)
Decimal8323942
Display P3color(display-p3 0.498 0.012 0.400)

Copy-ready code

/* CSS */
color: #7f0366;
background-color: #7f0366;
/* Tailwind (arbitrary) */
class="text-[#7f0366] bg-[#7f0366]"
/* SCSS */
$brand: #7f0366;
/* SwiftUI */
Color(red: 0.498, green: 0.012, blue: 0.400)
/* Android */
Color.parseColor("#7f0366")
/* Flutter */
Color(0xFF7F0366)
/* Python / OpenCV (BGR) */
(102, 3, 127)

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

Accessibility — WCAG contrast

Aa
#7f0366 on white: 9.97:1
AA ✓ pass · AA-large · AAA
Aa
#7f0366 on black: 2.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #123768
deuteranopia · #3E4964
tritanopia · #870C3A

Color scale — 50 to 950

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

#FDF1FB
#FCE4F7
#FAC2EF
#FC91E7
#FB5BDB
#FA24CF
#EF06C0
#C705A0
#9F0480
#7f0366
#48053A
Base = 900Lightest = 50 · #FDF1FBDarkest = 950 · #48053A
:root {
  --brand-50: #FDF1FB;
  --brand-100: #FCE4F7;
  --brand-200: #FAC2EF;
  --brand-300: #FC91E7;
  --brand-400: #FB5BDB;
  --brand-500: #FA24CF;
  --brand-600: #EF06C0;
  --brand-700: #C705A0;
  --brand-800: #9F0480;
  --brand-900: #7f0366;
  --brand-950: #48053A;
  --brand: #7f0366;
  --brand-ink: #ffffff;
}

Colors that work with #7f0366

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#EDC0E4
Hairlines and dividers
Muted text#9B4B8B
Captions on the surface
Accent#078200
Second voice, not a rival
Dark variant#7D0364
Hover, pressed, headers
Light variant#FEE6FA
Selected rows, tints
Dark surface#241421
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 #7f0366

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#037F1C
Analogous left#5A037F
Analogous right#7F0328
Split-complement 1#287F03
Split-complement 2#037F5A
Triadic 1#667F03
Triadic 2#03667F
Tetradic#7F5A03

RGB percentages

Red49.8%
Green1.2%
Blue40.0%

CMYK percentages

Cyan0.0%
Magenta97.6%
Yellow19.7%
Key (black)50.2%

Color previews

#7f0366 text on a black background

contrast 2.11:1

Card sample

#7f0366 text on a white background

contrast 9.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 3, 102, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 3, 102, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f0366;
background: linear-gradient(135deg, #7f0366, #7F0313);

Monochromatic scale

Palettes built from #7f0366

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.

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

#7f0366, answered

What color is #7f0366?

#7f0366 is a dark electric magenta / pink, closest to Purple (ΔE2000 5.5). It sits at 312° on the hue wheel with 95% saturation and 26% lightness, which reads as neutral.

What is the RGB value of #7f0366?

rgb(127, 3, 102) — 127 red, 3 green and 102 blue out of 255, or 49.8% / 1.2% / 40% by channel.

Is #7f0366 a light or a dark color?

It is a dark color. Relative luminance is 0.0554 and perceived brightness is 30%, so white text on it reaches 9.97:1.

Should I use black or white text on #7f0366?

White. It scores 9.97:1 against #7f0366, versus 2.11:1 for black — AAA at any size.

What is the complementary color of #7f0366?

#037F1C sits directly opposite on the wheel. Softer options are the split-complements #287F03 and #037F5A, which give the same contrast with far less vibration.

What colors go well with #7f0366?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8B for secondary text, #078200 as an accent and #7D0364 for hover and pressed states. For a palette, the analogous pair #5A037F and #7F0328 stays calm, while #037F1C is the loudest partner.

What is #7f0366 in CMYK for printing?

cmyk(0%, 98%, 20%, 50%). 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 #7f0366 warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7F0339; nudged cooler, #6B0280.

Work with #7f0366 in the Color Lab