Skip to content

#511d49

a deep, vivid magenta / pink · neutral · closest name: Purple

RGB
81, 29, 73
HSL
309°, 47%, 22%
CMYK
0, 64, 10, 68
Luminance
0.0311

At a glance

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

Hex
#511d49
Hue
309°
magenta / pink
Saturation
47%
vivid
Lightness
22%
deep
Brightness
32%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0311
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
12.95:1
Closest name
Purple
ΔE2000 12.6
Where it sits
Hue309° of 360°
Saturation47%
Lightness22%
Temperature
Warm ← → Cool45% 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#511d49
RGBrgb(81, 29, 73)
HSLhsl(309, 47%, 22%)
CMYKcmyk(0%, 64%, 10%, 68%)
LABlab(20.5 30.6 -15.8)
LCHlch(20.5 34.4 332.6)
OKLCHoklch(0.327 0.098 334.0)
Decimal5315913
Display P3color(display-p3 0.318 0.114 0.286)

Copy-ready code

/* CSS */
color: #511d49;
background-color: #511d49;
/* Tailwind (arbitrary) */
class="text-[#511d49] bg-[#511d49]"
/* SCSS */
$brand: #511d49;
/* SwiftUI */
Color(red: 0.318, green: 0.114, blue: 0.286)
/* Android */
Color.parseColor("#511d49")
/* Flutter */
Color(0xFF511D49)
/* Python / OpenCV (BGR) */
(73, 29, 81)

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

Accessibility — WCAG contrast

Aa
#511d49 on white: 12.95:1
AA ✓ pass · AA-large · AAA
Aa
#511d49 on black: 1.62:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1C2C4A
deuteranopia · #2C3448
tritanopia · #552030

Color scale — 50 to 950

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

#FAF5F9
#F5EAF4
#ECD0E7
#E1ACD9
#D383C6
#C45AB4
#B441A3
#963687
#782B6C
#511d49
#371632
Base = 900Lightest = 50 · #FAF5F9Darkest = 950 · #371632
:root {
  --brand-50: #FAF5F9;
  --brand-100: #F5EAF4;
  --brand-200: #ECD0E7;
  --brand-300: #E1ACD9;
  --brand-400: #D383C6;
  --brand-500: #C45AB4;
  --brand-600: #B441A3;
  --brand-700: #963687;
  --brand-800: #782B6C;
  --brand-900: #511d49;
  --brand-950: #371632;
  --brand: #511d49;
  --brand-ink: #ffffff;
}

Colors that work with #511d49

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#E9C3E4
Hairlines and dividers
Muted text#9B4B8F
Captions on the surface
Accent#20531B
Second voice, not a rival
Dark variant#5E2255
Hover, pressed, headers
Light variant#F8ECF6
Selected rows, tints
Dark surface#241422
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 #511d49

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#1D5125
Analogous left#3F1D51
Analogous right#511D2F
Split-complement 1#2F511D
Split-complement 2#1D513F
Triadic 1#49511D
Triadic 2#1D4951
Tetradic#513F1D

RGB percentages

Red31.8%
Green11.4%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta64.2%
Yellow9.9%
Key (black)68.2%

Color previews

#511d49 text on a black background

contrast 1.62:1

Card sample

#511d49 text on a white background

contrast 12.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #511d49;
Background color
Panel with #511d49 background
background-color: #511d49;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(81, 29, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 29, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #511d49;
background: linear-gradient(135deg, #511d49, #511D26);

Monochromatic scale

Palettes built from #511d49

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.

#511d49 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.

#511d49, answered

What color is #511d49?

#511d49 is a deep vivid magenta / pink, closest to Purple (ΔE2000 12.6). It sits at 309° on the hue wheel with 47% saturation and 22% lightness, which reads as neutral.

What is the RGB value of #511d49?

rgb(81, 29, 73) — 81 red, 29 green and 73 blue out of 255, or 31.8% / 11.4% / 28.6% by channel.

Is #511d49 a light or a dark color?

It is a dark color. Relative luminance is 0.0311 and perceived brightness is 22%, so white text on it reaches 12.95:1.

Should I use black or white text on #511d49?

White. It scores 12.95:1 against #511d49, versus 1.62:1 for black — AAA at any size.

What is the complementary color of #511d49?

#1D5125 sits directly opposite on the wheel. Softer options are the split-complements #2F511D and #1D513F, which give the same contrast with far less vibration.

What colors go well with #511d49?

For interface work: #FAF4F9 as the surface, #E9C3E4 for borders, #9B4B8F for secondary text, #20531B as an accent and #5E2255 for hover and pressed states. For a palette, the analogous pair #3F1D51 and #511D2F stays calm, while #1D5125 is the loudest partner.

What is #511d49 in CMYK for printing?

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

Is #511d49 warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #511D36; nudged cooler, #471C52.

Work with #511d49 in the Color Lab