Skip to content

#4d2f9b

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

RGB
77, 47, 155
HSL
257°, 54%, 40%
CMYK
50, 70, 0, 39
Luminance
0.0598

At a glance

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

Hex
#4d2f9b
Hue
257°
violet
Saturation
54%
vivid
Lightness
40%
dark
Brightness
61%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0598
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
9.57:1
Closest name
Rebecca Purple
ΔE2000 4.9
Where it sits
Hue257° of 360°
Saturation54%
Lightness40%
Temperature
Warm ← → Cool74% 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#4d2f9b
RGBrgb(77, 47, 155)
HSLhsl(257, 54%, 40%)
CMYKcmyk(50%, 70%, 0%, 39%)
LABlab(29.4 40.5 -54.3)
LCHlch(29.4 67.7 306.7)
OKLCHoklch(0.409 0.165 289.8)
Decimal5058459
Display P3color(display-p3 0.302 0.184 0.608)

Copy-ready code

/* CSS */
color: #4d2f9b;
background-color: #4d2f9b;
/* Tailwind (arbitrary) */
class="text-[#4d2f9b] bg-[#4d2f9b]"
/* SCSS */
$brand: #4d2f9b;
/* SwiftUI */
Color(red: 0.302, green: 0.184, blue: 0.608)
/* Android */
Color.parseColor("#4d2f9b")
/* Flutter */
Color(0xFF4D2F9B)
/* Python / OpenCV (BGR) */
(155, 47, 77)

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

Accessibility — WCAG contrast

Aa
#4d2f9b on white: 9.57:1
AA ✓ pass · AA-large · AAA
Aa
#4d2f9b on black: 2.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00479E
deuteranopia · #004399
tritanopia · #324A61

Color scale — 50 to 950

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

#F6F4FB
#EDE9F6
#D7CEED
#BAA9E5
#977ED8
#7453CB
#5D39BC
#4d2f9b
#3E267D
#301F5B
#1E1339
Base = 700Lightest = 50 · #F6F4FBDarkest = 950 · #1E1339
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE9F6;
  --brand-200: #D7CEED;
  --brand-300: #BAA9E5;
  --brand-400: #977ED8;
  --brand-500: #7453CB;
  --brand-600: #5D39BC;
  --brand-700: #4d2f9b;
  --brand-800: #3E267D;
  --brand-900: #301F5B;
  --brand-950: #1E1339;
  --brand: #4d2f9b;
  --brand-ink: #ffffff;
}

Colors that work with #4d2f9b

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#F6F4FA
Tinted page background
Border#CDC0EC
Hairlines and dividers
Muted text#614B9B
Captions on the surface
Accent#9DA12B
Second voice, not a rival
Dark variant#311E62
Hover, pressed, headers
Light variant#EFEBF9
Selected rows, tints
Dark surface#181424
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 #4d2f9b

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#7D9B2F
Analogous left#2F479B
Analogous right#832F9B
Split-complement 1#9B832F
Split-complement 2#479B2F
Triadic 1#9B4D2F
Triadic 2#2F9B4D
Tetradic#9B2F47

RGB percentages

Red30.2%
Green18.4%
Blue60.8%

CMYK percentages

Cyan50.3%
Magenta69.7%
Yellow0.0%
Key (black)39.2%

Color previews

#4d2f9b text on a black background

contrast 2.20:1

Card sample

#4d2f9b text on a white background

contrast 9.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4d2f9b;
Background color
Panel with #4d2f9b background
background-color: #4d2f9b;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(77, 47, 155, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(77, 47, 155, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4d2f9b;
background: linear-gradient(135deg, #4d2f9b, #952F9B);

Monochromatic scale

Palettes built from #4d2f9b

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.

#4d2f9b 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.

#4d2f9b, answered

What color is #4d2f9b?

#4d2f9b is a dark vivid violet, closest to Rebecca Purple (ΔE2000 4.9). It sits at 257° on the hue wheel with 54% saturation and 40% lightness, which reads as cool.

What is the RGB value of #4d2f9b?

rgb(77, 47, 155) — 77 red, 47 green and 155 blue out of 255, or 30.2% / 18.4% / 60.8% by channel.

Is #4d2f9b a light or a dark color?

It is a dark color. Relative luminance is 0.0598 and perceived brightness is 30%, so white text on it reaches 9.57:1.

Should I use black or white text on #4d2f9b?

White. It scores 9.57:1 against #4d2f9b, versus 2.20:1 for black — AAA at any size.

What is the complementary color of #4d2f9b?

#7D9B2F sits directly opposite on the wheel. Softer options are the split-complements #9B832F and #479B2F, which give the same contrast with far less vibration.

What colors go well with #4d2f9b?

For interface work: #F6F4FA as the surface, #CDC0EC for borders, #614B9B for secondary text, #9DA12B as an accent and #311E62 for hover and pressed states. For a palette, the analogous pair #2F479B and #832F9B stays calm, while #7D9B2F is the loudest partner.

What is #4d2f9b in CMYK for printing?

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

Is #4d2f9b warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #752F9B; nudged cooler, #2D379D.

Work with #4d2f9b in the Color Lab