Skip to content

#511da4

a dark, vivid violet · cool · closest name: Rebecca Purple

RGB
81, 29, 164
HSL
263°, 70%, 38%
CMYK
51, 82, 0, 36
Luminance
0.0531

At a glance

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

Hex
#511da4
Hue
263°
violet
Saturation
70%
vivid
Lightness
38%
dark
Brightness
64%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0531
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
10.19:1
Closest name
Rebecca Purple
ΔE2000 6.3
Where it sits
Hue263° of 360°
Saturation70%
Lightness38%
Temperature
Warm ← → Cool70% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#511da4
RGBrgb(81, 29, 164)
HSLhsl(263, 70%, 38%)
CMYKcmyk(51%, 82%, 0%, 36%)
LABlab(27.6 52.2 -62.6)
LCHlch(27.6 81.5 309.8)
OKLCHoklch(0.400 0.195 292.5)
Decimal5316004
Display P3color(display-p3 0.318 0.114 0.643)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#511da4 on white: 10.19:1
AA ✓ pass · AA-large · AAA
Aa
#511da4 on black: 2.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0043A8
deuteranopia · #003EA2
tritanopia · #354562

Color scale — 50 to 950

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

#F6F3FC
#EEE7F8
#D9C9F2
#BEA0EE
#9D70E6
#7D40DD
#6725D0
#511da4
#44198B
#341665
#210E3F
Base = 700Lightest = 50 · #F6F3FCDarkest = 950 · #210E3F
:root {
  --brand-50: #F6F3FC;
  --brand-100: #EEE7F8;
  --brand-200: #D9C9F2;
  --brand-300: #BEA0EE;
  --brand-400: #9D70E6;
  --brand-500: #7D40DD;
  --brand-600: #6725D0;
  --brand-700: #511da4;
  --brand-800: #44198B;
  --brand-900: #341665;
  --brand-950: #210E3F;
  --brand: #511da4;
  --brand-ink: #ffffff;
}

Colors that work with #511da4

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#F7F4FA
Tinted page background
Border#D1C0ED
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#9CB21A
Second voice, not a rival
Dark variant#36136C
Hover, pressed, headers
Light variant#F0E9FB
Selected rows, tints
Dark surface#1A1424
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 #511da4

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#70A41D
Analogous left#1D2DA4
Analogous right#941DA4
Split-complement 1#A4941D
Split-complement 2#2DA41D
Triadic 1#A4511D
Triadic 2#1DA451
Tetradic#A41D2D

RGB percentages

Red31.8%
Green11.4%
Blue64.3%

CMYK percentages

Cyan50.6%
Magenta82.3%
Yellow0.0%
Key (black)35.7%

Color previews

#511da4 text on a black background

contrast 2.06:1

Card sample

#511da4 text on a white background

contrast 10.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #511da4

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.

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

#511da4, answered

What color is #511da4?

#511da4 is a dark vivid violet, closest to Rebecca Purple (ΔE2000 6.3). It sits at 263° on the hue wheel with 70% saturation and 38% lightness, which reads as cool.

What is the RGB value of #511da4?

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

Is #511da4 a light or a dark color?

It is a dark color. Relative luminance is 0.0531 and perceived brightness is 29%, so white text on it reaches 10.19:1.

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

White. It scores 10.19:1 against #511da4, versus 2.06:1 for black — AAA at any size.

What is the complementary color of #511da4?

#70A41D sits directly opposite on the wheel. Softer options are the split-complements #A4941D and #2DA41D, which give the same contrast with far less vibration.

What colors go well with #511da4?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #6A4B9B for secondary text, #9CB21A as an accent and #36136C for hover and pressed states. For a palette, the analogous pair #1D2DA4 and #941DA4 stays calm, while #70A41D is the loudest partner.

What is #511da4 in CMYK for printing?

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

Is #511da4 warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #821DA4; nudged cooler, #1E1BA6.

Work with #511da4 in the Color Lab