Skip to content

#8a548c

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

RGB
138, 84, 140
HSL
298°, 25%, 44%
CMYK
1, 40, 0, 45
Luminance
0.1364

At a glance

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

Hex
#8a548c
Hue
298°
magenta / pink
Saturation
25%
soft
Lightness
44%
dark
Brightness
55%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1364
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
5.63:1
Closest name
Medium Violet Red
ΔE2000 13.6
Where it sits
Hue298° of 360°
Saturation25%
Lightness44%
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#8a548c
RGBrgb(138, 84, 140)
HSLhsl(298, 25%, 44%)
CMYKcmyk(1%, 40%, 0%, 45%)
LABlab(43.7 31.8 -21.9)
LCHlch(43.7 38.6 325.5)
OKLCHoklch(0.528 0.106 325.7)
Decimal9065612
Display P3color(display-p3 0.541 0.329 0.549)

Copy-ready code

/* CSS */
color: #8a548c;
background-color: #8a548c;
/* Tailwind (arbitrary) */
class="text-[#8a548c] bg-[#8a548c]"
/* SCSS */
$brand: #8a548c;
/* SwiftUI */
Color(red: 0.541, green: 0.329, blue: 0.549)
/* Android */
Color.parseColor("#8a548c")
/* Flutter */
Color(0xFF8A548C)
/* Python / OpenCV (BGR) */
(140, 84, 138)

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

Accessibility — WCAG contrast

Aa
#8a548c on white: 5.63:1
AA ✓ pass · AA-large · AAA
Aa
#8a548c on black: 3.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4F638E
deuteranopia · #5D6A8A
tritanopia · #8D5A69

Color scale — 50 to 950

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

#F9F6F9
#F2EDF3
#E5D7E5
#D4B9D5
#BE96C0
#A973AB
#975C99
#8a548c
#653D66
#4A2F4B
#2E1D2F
Base = 700Lightest = 50 · #F9F6F9Darkest = 950 · #2E1D2F
:root {
  --brand-50: #F9F6F9;
  --brand-100: #F2EDF3;
  --brand-200: #E5D7E5;
  --brand-300: #D4B9D5;
  --brand-400: #BE96C0;
  --brand-500: #A973AB;
  --brand-600: #975C99;
  --brand-700: #8a548c;
  --brand-800: #653D66;
  --brand-900: #4A2F4B;
  --brand-950: #2E1D2F;
  --brand: #8a548c;
  --brand-ink: #ffffff;
}

Colors that work with #8a548c

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#F9F5F9
Tinted page background
Border#E0CCE0
Hairlines and dividers
Muted text#8D568F
Captions on the surface
Accent#62904F
Second voice, not a rival
Dark variant#4F3050
Hover, pressed, headers
Light variant#F5EFF5
Selected rows, tints
Dark surface#231523
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 #8a548c

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#568C54
Analogous left#6E548C
Analogous right#8C5472
Split-complement 1#728C54
Split-complement 2#548C6E
Triadic 1#8C8A54
Triadic 2#548C8A
Tetradic#8C6E54

RGB percentages

Red54.1%
Green32.9%
Blue54.9%

CMYK percentages

Cyan1.4%
Magenta40.0%
Yellow0.0%
Key (black)45.1%

Color previews

#8a548c text on a black background

contrast 3.73:1

Card sample

#8a548c text on a white background

contrast 5.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a548c

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.

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

#8a548c, answered

What color is #8a548c?

#8a548c is a dark soft magenta / pink, closest to Medium Violet Red (ΔE2000 13.6). It sits at 298° on the hue wheel with 25% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #8a548c?

rgb(138, 84, 140) — 138 red, 84 green and 140 blue out of 255, or 54.1% / 32.9% / 54.9% by channel.

Is #8a548c a light or a dark color?

It is a dark color. Relative luminance is 0.1364 and perceived brightness is 43%, so white text on it reaches 5.63:1.

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

White. It scores 5.63:1 against #8a548c, versus 3.73:1 for black — AA at any size.

What is the complementary color of #8a548c?

#568C54 sits directly opposite on the wheel. Softer options are the split-complements #728C54 and #548C6E, which give the same contrast with far less vibration.

What colors go well with #8a548c?

For interface work: #F9F5F9 as the surface, #E0CCE0 for borders, #8D568F for secondary text, #62904F as an accent and #4F3050 for hover and pressed states. For a palette, the analogous pair #6E548C and #8C5472 stays calm, while #568C54 is the loudest partner.

What is #8a548c in CMYK for printing?

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

Is #8a548c 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 #8C5479; nudged cooler, #76528E.

Work with #8a548c in the Color Lab