Skip to content

#8f308c

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

RGB
143, 48, 140
HSL
302°, 50%, 38%
CMYK
0, 66, 2, 44
Luminance
0.0985

At a glance

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

Hex
#8f308c
Hue
302°
magenta / pink
Saturation
50%
vivid
Lightness
38%
dark
Brightness
56%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0985
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
7.07:1
Closest name
Dark Magenta
ΔE2000 5.3
Where it sits
Hue302° of 360°
Saturation50%
Lightness38%
Temperature
Warm ← → Cool49% 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#8f308c
RGBrgb(143, 48, 140)
HSLhsl(302, 50%, 38%)
CMYKcmyk(0%, 66%, 2%, 44%)
LABlab(37.6 51.5 -31.4)
LCHlch(37.6 60.3 328.6)
OKLCHoklch(0.484 0.169 329.1)
Decimal9384076
Display P3color(display-p3 0.561 0.188 0.549)

Copy-ready code

/* CSS */
color: #8f308c;
background-color: #8f308c;
/* Tailwind (arbitrary) */
class="text-[#8f308c] bg-[#8f308c]"
/* SCSS */
$brand: #8f308c;
/* SwiftUI */
Color(red: 0.561, green: 0.188, blue: 0.549)
/* Android */
Color.parseColor("#8f308c")
/* Flutter */
Color(0xFF8F308C)
/* Python / OpenCV (BGR) */
(140, 48, 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 #8f308c · 7.07:1
Use #ffffffAAA at every size.
Aa
White text · 7.07:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.97:1
AA fail · AA large fail · AAA fail
Reading the other direction: #8f308c as text scores 7.07:1 on white and 2.97:1 on black.

Accessibility — WCAG contrast

Aa
#8f308c on white: 7.07:1
AA ✓ pass · AA-large · AAA
Aa
#8f308c on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #26508F
deuteranopia · #495D89
tritanopia · #943C5A

Color scale — 50 to 950

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

#FAF4FA
#F6EAF5
#ECCFEB
#E3ABE1
#D581D2
#C757C3
#B73EB3
#8f308c
#7A2978
#592157
#381537
Base = 700Lightest = 50 · #FAF4FADarkest = 950 · #381537
:root {
  --brand-50: #FAF4FA;
  --brand-100: #F6EAF5;
  --brand-200: #ECCFEB;
  --brand-300: #E3ABE1;
  --brand-400: #D581D2;
  --brand-500: #C757C3;
  --brand-600: #B73EB3;
  --brand-700: #8f308c;
  --brand-800: #7A2978;
  --brand-900: #592157;
  --brand-950: #381537;
  --brand: #8f308c;
  --brand-ink: #ffffff;
}

Colors that work with #8f308c

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#EAC2E9
Hairlines and dividers
Muted text#9B4B98
Captions on the surface
Accent#43932C
Second voice, not a rival
Dark variant#5F205D
Hover, pressed, headers
Light variant#F9ECF8
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 #8f308c

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#308F33
Analogous left#63308F
Analogous right#8F305D
Split-complement 1#5D8F30
Split-complement 2#308F63
Triadic 1#8C8F30
Triadic 2#308C8F
Tetradic#8F6330

RGB percentages

Red56.1%
Green18.8%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta66.4%
Yellow2.1%
Key (black)43.9%

Color previews

#8f308c text on a black background

contrast 2.97:1

Card sample

#8f308c text on a white background

contrast 7.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f308c

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.

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

#8f308c, answered

What color is #8f308c?

#8f308c is a dark vivid magenta / pink, closest to Dark Magenta (ΔE2000 5.3). It sits at 302° on the hue wheel with 50% saturation and 38% lightness, which reads as neutral.

What is the RGB value of #8f308c?

rgb(143, 48, 140) — 143 red, 48 green and 140 blue out of 255, or 56.1% / 18.8% / 54.9% by channel.

Is #8f308c a light or a dark color?

It is a dark color. Relative luminance is 0.0985 and perceived brightness is 39%, so white text on it reaches 7.07:1.

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

White. It scores 7.07:1 against #8f308c, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #8f308c?

#308F33 sits directly opposite on the wheel. Softer options are the split-complements #5D8F30 and #308F63, which give the same contrast with far less vibration.

What colors go well with #8f308c?

For interface work: #FAF4FA as the surface, #EAC2E9 for borders, #9B4B98 for secondary text, #43932C as an accent and #5F205D for hover and pressed states. For a palette, the analogous pair #63308F and #8F305D stays calm, while #308F33 is the loudest partner.

What is #8f308c in CMYK for printing?

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

Is #8f308c warm or cool?

Neutral — it scores 49 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8F3069; nudged cooler, #702E91.

Work with #8f308c in the Color Lab