Skip to content

#511b46

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

RGB
81, 27, 70
HSL
312°, 50%, 21%
CMYK
0, 67, 14, 68
Luminance
0.0298

At a glance

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

Hex
#511b46
Hue
312°
magenta / pink
Saturation
50%
vivid
Lightness
21%
deep
Brightness
32%
HSV value
Perceived
21%
weighted brightness
Luminance
0.0298
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
13.17:1
Closest name
Purple
ΔE2000 13
Where it sits
Hue312° of 360°
Saturation50%
Lightness21%
Temperature
Warm ← → Cool43% 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#511b46
RGBrgb(81, 27, 70)
HSLhsl(312, 50%, 21%)
CMYKcmyk(0%, 67%, 14%, 68%)
LABlab(19.9 31.0 -14.6)
LCHlch(19.9 34.3 334.8)
OKLCHoklch(0.323 0.099 336.4)
Decimal5315398
Display P3color(display-p3 0.318 0.106 0.275)

Copy-ready code

/* CSS */
color: #511b46;
background-color: #511b46;
/* Tailwind (arbitrary) */
class="text-[#511b46] bg-[#511b46]"
/* SCSS */
$brand: #511b46;
/* SwiftUI */
Color(red: 0.318, green: 0.106, blue: 0.275)
/* Android */
Color.parseColor("#511b46")
/* Flutter */
Color(0xFF511B46)
/* Python / OpenCV (BGR) */
(70, 27, 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 #511b46 · 13.17:1
Use #ffffffAAA at every size.
Aa
White text · 13.17:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.60:1
AA fail · AA large fail · AAA fail
Reading the other direction: #511b46 as text scores 13.17:1 on white and 1.60:1 on black.

Accessibility — WCAG contrast

Aa
#511b46 on white: 13.17:1
AA ✓ pass · AA-large · AAA
Aa
#511b46 on black: 1.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1C2B47
deuteranopia · #2C3345
tritanopia · #551E2D

Color scale — 50 to 950

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

#FAF4F9
#F6EAF3
#ECCFE7
#E3ABD8
#D581C4
#C757B0
#B83D9F
#993384
#7A296A
#511b46
#381531
Base = 900Lightest = 50 · #FAF4F9Darkest = 950 · #381531
:root {
  --brand-50: #FAF4F9;
  --brand-100: #F6EAF3;
  --brand-200: #ECCFE7;
  --brand-300: #E3ABD8;
  --brand-400: #D581C4;
  --brand-500: #C757B0;
  --brand-600: #B83D9F;
  --brand-700: #993384;
  --brand-800: #7A296A;
  --brand-900: #511b46;
  --brand-950: #381531;
  --brand: #511b46;
  --brand-ink: #ffffff;
}

Colors that work with #511b46

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#EBC2E2
Hairlines and dividers
Muted text#9B4B8B
Captions on the surface
Accent#1C5319
Second voice, not a rival
Dark variant#602053
Hover, pressed, headers
Light variant#F9ECF6
Selected rows, tints
Dark surface#241421
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 #511b46

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#1B5126
Analogous left#411B51
Analogous right#511B2B
Split-complement 1#2B511B
Split-complement 2#1B5141
Triadic 1#46511B
Triadic 2#1B4651
Tetradic#51411B

RGB percentages

Red31.8%
Green10.6%
Blue27.5%

CMYK percentages

Cyan0.0%
Magenta66.7%
Yellow13.6%
Key (black)68.2%

Color previews

#511b46 text on a black background

contrast 1.60:1

Card sample

#511b46 text on a white background

contrast 13.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #511b46

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.

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

#511b46, answered

What color is #511b46?

#511b46 is a deep vivid magenta / pink, closest to Purple (ΔE2000 13). It sits at 312° on the hue wheel with 50% saturation and 21% lightness, which reads as neutral.

What is the RGB value of #511b46?

rgb(81, 27, 70) — 81 red, 27 green and 70 blue out of 255, or 31.8% / 10.6% / 27.5% by channel.

Is #511b46 a light or a dark color?

It is a dark color. Relative luminance is 0.0298 and perceived brightness is 21%, so white text on it reaches 13.17:1.

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

White. It scores 13.17:1 against #511b46, versus 1.60:1 for black — AAA at any size.

What is the complementary color of #511b46?

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

What colors go well with #511b46?

For interface work: #FAF4F9 as the surface, #EBC2E2 for borders, #9B4B8B for secondary text, #1C5319 as an accent and #602053 for hover and pressed states. For a palette, the analogous pair #411B51 and #511B2B stays calm, while #1B5126 is the loudest partner.

What is #511b46 in CMYK for printing?

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

Is #511b46 warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #511B32; nudged cooler, #491A52.

Work with #511b46 in the Color Lab