Skip to content

#8f024c

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

RGB
143, 2, 76
HSL
329°, 97%, 28%
CMYK
0, 99, 47, 44
Luminance
0.0640

At a glance

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

Hex
#8f024c
Hue
329°
magenta / pink
Saturation
97%
electric
Lightness
28%
dark
Brightness
56%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0640
WCAG relative
Temperature
Warm
34/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
9.21:1
Closest name
Medium Violet Red
ΔE2000 13.9
Where it sits
Hue329° of 360°
Saturation97%
Lightness28%
Temperature
Warm ← → Cool34% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#8f024c
RGBrgb(143, 2, 76)
HSLhsl(329, 97%, 28%)
CMYKcmyk(0%, 99%, 47%, 44%)
LABlab(30.4 55.3 -1.6)
LCHlch(30.4 55.3 358.3)
OKLCHoklch(0.423 0.171 358.8)
Decimal9372236
Display P3color(display-p3 0.561 0.008 0.298)

Copy-ready code

/* CSS */
color: #8f024c;
background-color: #8f024c;
/* Tailwind (arbitrary) */
class="text-[#8f024c] bg-[#8f024c]"
/* SCSS */
$brand: #8f024c;
/* SwiftUI */
Color(red: 0.561, green: 0.008, blue: 0.298)
/* Android */
Color.parseColor("#8f024c")
/* Flutter */
Color(0xFF8F024C)
/* Python / OpenCV (BGR) */
(76, 2, 143)

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

Accessibility — WCAG contrast

Aa
#8f024c on white: 9.21:1
AA ✓ pass · AA-large · AAA
Aa
#8f024c on black: 2.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2E384D
deuteranopia · #525049
tritanopia · #9C002B

Color scale — 50 to 950

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

#FDF1F8
#FCE4F0
#FBC1DF
#FD90CA
#FD59AF
#FC2294
#F10380
#C9036B
#8f024c
#740640
#480428
Base = 800Lightest = 50 · #FDF1F8Darkest = 950 · #480428
:root {
  --brand-50: #FDF1F8;
  --brand-100: #FCE4F0;
  --brand-200: #FBC1DF;
  --brand-300: #FD90CA;
  --brand-400: #FD59AF;
  --brand-500: #FC2294;
  --brand-600: #F10380;
  --brand-700: #C9036B;
  --brand-800: #8f024c;
  --brand-900: #740640;
  --brand-950: #480428;
  --brand: #8f024c;
  --brand-ink: #ffffff;
}

Colors that work with #8f024c

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#FAF4F8
Tinted page background
Border#EDC0D7
Hairlines and dividers
Muted text#9B4B75
Captions on the surface
Accent#009121
Second voice, not a rival
Dark variant#7E0243
Hover, pressed, headers
Light variant#FFE6F3
Selected rows, tints
Dark surface#24141C
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 #8f024c

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#028F45
Analogous left#8B028F
Analogous right#8F0206
Split-complement 1#068F02
Split-complement 2#028F8B
Triadic 1#4C8F02
Triadic 2#024C8F
Tetradic#8F8B02

RGB percentages

Red56.1%
Green0.8%
Blue29.8%

CMYK percentages

Cyan0.0%
Magenta98.6%
Yellow46.9%
Key (black)43.9%

Color previews

#8f024c text on a black background

contrast 2.28:1

Card sample

#8f024c text on a white background

contrast 9.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f024c

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.

#8f024c 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.

#8f024c, answered

What color is #8f024c?

#8f024c is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 13.9). It sits at 329° on the hue wheel with 97% saturation and 28% lightness, which reads as warm.

What is the RGB value of #8f024c?

rgb(143, 2, 76) — 143 red, 2 green and 76 blue out of 255, or 56.1% / 0.8% / 29.8% by channel.

Is #8f024c a light or a dark color?

It is a dark color. Relative luminance is 0.0640 and perceived brightness is 32%, so white text on it reaches 9.21:1.

Should I use black or white text on #8f024c?

White. It scores 9.21:1 against #8f024c, versus 2.28:1 for black — AAA at any size.

What is the complementary color of #8f024c?

#028F45 sits directly opposite on the wheel. Softer options are the split-complements #068F02 and #028F8B, which give the same contrast with far less vibration.

What colors go well with #8f024c?

For interface work: #FAF4F8 as the surface, #EDC0D7 for borders, #9B4B75 for secondary text, #009121 as an accent and #7E0243 for hover and pressed states. For a palette, the analogous pair #8B028F and #8F0206 stays calm, while #028F45 is the loudest partner.

What is #8f024c in CMYK for printing?

cmyk(0%, 99%, 47%, 44%). 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 #8f024c warm or cool?

Warm — it scores 34 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8F0218; nudged cooler, #900181.

Work with #8f024c in the Color Lab