Skip to content

#7f548c

a dark, soft violet · neutral · closest name: Rebecca Purple

RGB
127, 84, 140
HSL
286°, 25%, 44%
CMYK
9, 40, 0, 45
Luminance
0.1275

At a glance

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

Hex
#7f548c
Hue
286°
violet
Saturation
25%
soft
Lightness
44%
dark
Brightness
55%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1275
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Soft
Best ink
White
5.92:1
Closest name
Rebecca Purple
ΔE2000 12.2
Where it sits
Hue286° of 360°
Saturation25%
Lightness44%
Temperature
Warm ← → Cool56% 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#7f548c
RGBrgb(127, 84, 140)
HSLhsl(286, 25%, 44%)
CMYKcmyk(9%, 40%, 0%, 45%)
LABlab(42.4 28.2 -24.0)
LCHlch(42.4 37.0 319.5)
OKLCHoklch(0.515 0.099 318.1)
Decimal8344716
Display P3color(display-p3 0.498 0.329 0.549)

Copy-ready code

/* CSS */
color: #7f548c;
background-color: #7f548c;
/* Tailwind (arbitrary) */
class="text-[#7f548c] bg-[#7f548c]"
/* SCSS */
$brand: #7f548c;
/* SwiftUI */
Color(red: 0.498, green: 0.329, blue: 0.549)
/* Android */
Color.parseColor("#7f548c")
/* Flutter */
Color(0xFF7F548C)
/* Python / OpenCV (BGR) */
(140, 84, 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 #7f548c · 5.92:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.92:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.55:1
AA fail · AA large pass · AAA fail
Reading the other direction: #7f548c as text scores 5.92:1 on white and 3.55:1 on black.

Accessibility — WCAG contrast

Aa
#7f548c on white: 5.92:1
AA ✓ pass · AA-large · AAA
Aa
#7f548c on black: 3.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4C618E
deuteranopia · #57658A
tritanopia · #7F5B69

Color scale — 50 to 950

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

#F8F6F9
#F1EDF3
#E2D7E5
#CEB9D5
#B696C0
#9E73AB
#8B5C99
#7f548c
#5D3D66
#452F4B
#2B1D2F
Base = 700Lightest = 50 · #F8F6F9Darkest = 950 · #2B1D2F
:root {
  --brand-50: #F8F6F9;
  --brand-100: #F1EDF3;
  --brand-200: #E2D7E5;
  --brand-300: #CEB9D5;
  --brand-400: #B696C0;
  --brand-500: #9E73AB;
  --brand-600: #8B5C99;
  --brand-700: #7f548c;
  --brand-800: #5D3D66;
  --brand-900: #452F4B;
  --brand-950: #2B1D2F;
  --brand: #7f548c;
  --brand-ink: #ffffff;
}

Colors that work with #7f548c

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#F8F5F9
Tinted page background
Border#DCCCE0
Hairlines and dividers
Muted text#82568F
Captions on the surface
Accent#6F904F
Second voice, not a rival
Dark variant#483050
Hover, pressed, headers
Light variant#F4EFF5
Selected rows, tints
Dark surface#201523
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 #7f548c

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#618C54
Analogous left#63548C
Analogous right#8C547D
Split-complement 1#7D8C54
Split-complement 2#548C63
Triadic 1#8C7F54
Triadic 2#548C7F
Tetradic#8C6354

RGB percentages

Red49.8%
Green32.9%
Blue54.9%

CMYK percentages

Cyan9.3%
Magenta40.0%
Yellow0.0%
Key (black)45.1%

Color previews

#7f548c text on a black background

contrast 3.55:1

Card sample

#7f548c text on a white background

contrast 5.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f548c

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.

#7f548c in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#7f548c, answered

What color is #7f548c?

#7f548c is a dark soft violet, closest to Rebecca Purple (ΔE2000 12.2). It sits at 286° on the hue wheel with 25% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #7f548c?

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

Is #7f548c a light or a dark color?

It is a dark color. Relative luminance is 0.1275 and perceived brightness is 41%, so white text on it reaches 5.92:1.

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

White. It scores 5.92:1 against #7f548c, versus 3.55:1 for black — AA at any size.

What is the complementary color of #7f548c?

#618C54 sits directly opposite on the wheel. Softer options are the split-complements #7D8C54 and #548C63, which give the same contrast with far less vibration.

What colors go well with #7f548c?

For interface work: #F8F5F9 as the surface, #DCCCE0 for borders, #82568F for secondary text, #6F904F as an accent and #483050 for hover and pressed states. For a palette, the analogous pair #63548C and #8C547D stays calm, while #618C54 is the loudest partner.

What is #7f548c in CMYK for printing?

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

Is #7f548c warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8C5484; nudged cooler, #6A528E.

Work with #7f548c in the Color Lab