Skip to content

#4d2eb7

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

RGB
77, 46, 183
HSL
254°, 60%, 45%
CMYK
58, 75, 0, 28
Luminance
0.0695

At a glance

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

Hex
#4d2eb7
Hue
254°
blue
Saturation
60%
vivid
Lightness
45%
dark
Brightness
72%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0695
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.79:1
Closest name
Rebecca Purple
ΔE2000 6.9
Where it sits
Hue254° of 360°
Saturation60%
Lightness45%
Temperature
Warm ← → Cool76% 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#4d2eb7
RGBrgb(77, 46, 183)
HSLhsl(254, 60%, 45%)
CMYKcmyk(58%, 75%, 0%, 28%)
LABlab(31.7 49.3 -67.3)
LCHlch(31.7 83.4 306.2)
OKLCHoklch(0.433 0.200 284.7)
Decimal5058231
Display P3color(display-p3 0.302 0.180 0.718)

Copy-ready code

/* CSS */
color: #4d2eb7;
background-color: #4d2eb7;
/* Tailwind (arbitrary) */
class="text-[#4d2eb7] bg-[#4d2eb7]"
/* SCSS */
$brand: #4d2eb7;
/* SwiftUI */
Color(red: 0.302, green: 0.180, blue: 0.718)
/* Android */
Color.parseColor("#4d2eb7")
/* Flutter */
Color(0xFF4D2EB7)
/* Python / OpenCV (BGR) */
(183, 46, 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 #4d2eb7 · 8.79:1
Use #ffffffAAA at every size.
Aa
White text · 8.79:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.39:1
AA fail · AA large fail · AAA fail
Reading the other direction: #4d2eb7 as text scores 8.79:1 on white and 2.39:1 on black.

Accessibility — WCAG contrast

Aa
#4d2eb7 on white: 8.79:1
AA ✓ pass · AA-large · AAA
Aa
#4d2eb7 on black: 2.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004EBB
deuteranopia · #0046B4
tritanopia · #135470

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #4d2eb7 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F4FB
#ECE9F7
#D4CCEF
#B5A5E8
#8F79DD
#6A4CD2
#4d2eb7
#4529A3
#372182
#2B1C5F
#1B113B
Base = 600Lightest = 50 · #F5F4FBDarkest = 950 · #1B113B
:root {
  --brand-50: #F5F4FB;
  --brand-100: #ECE9F7;
  --brand-200: #D4CCEF;
  --brand-300: #B5A5E8;
  --brand-400: #8F79DD;
  --brand-500: #6A4CD2;
  --brand-600: #4d2eb7;
  --brand-700: #4529A3;
  --brand-800: #372182;
  --brand-900: #2B1C5F;
  --brand-950: #1B113B;
  --brand: #4d2eb7;
  --brand-ink: #ffffff;
}

Colors that work with #4d2eb7

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#CAC0ED
Hairlines and dividers
Muted text#5D4B9B
Captions on the surface
Accent#A7A425
Second voice, not a rival
Dark variant#2B1A66
Hover, pressed, headers
Light variant#EEEBFA
Selected rows, tints
Dark surface#171424
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 #4d2eb7

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#98B72E
Analogous left#2E53B7
Analogous right#922EB7
Split-complement 1#B7922E
Split-complement 2#53B72E
Triadic 1#B74D2E
Triadic 2#2EB74D
Tetradic#B72E53

RGB percentages

Red30.2%
Green18.0%
Blue71.8%

CMYK percentages

Cyan57.9%
Magenta74.9%
Yellow0.0%
Key (black)28.2%

Color previews

#4d2eb7 text on a black background

contrast 2.39:1

Card sample

#4d2eb7 text on a white background

contrast 8.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(77, 46, 183, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(77, 46, 183, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4d2eb7;
background: linear-gradient(135deg, #4d2eb7, #A82EB7);

Monochromatic scale

Palettes built from #4d2eb7

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.

#4d2eb7 in the real world

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

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#4d2eb7, answered

What color is #4d2eb7?

#4d2eb7 is a dark vivid blue, closest to Rebecca Purple (ΔE2000 6.9). It sits at 254° on the hue wheel with 60% saturation and 45% lightness, which reads as cool.

What is the RGB value of #4d2eb7?

rgb(77, 46, 183) — 77 red, 46 green and 183 blue out of 255, or 30.2% / 18% / 71.8% by channel.

Is #4d2eb7 a light or a dark color?

It is a dark color. Relative luminance is 0.0695 and perceived brightness is 32%, so white text on it reaches 8.79:1.

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

White. It scores 8.79:1 against #4d2eb7, versus 2.39:1 for black — AAA at any size.

What is the complementary color of #4d2eb7?

#98B72E sits directly opposite on the wheel. Softer options are the split-complements #B7922E and #53B72E, which give the same contrast with far less vibration.

What colors go well with #4d2eb7?

For interface work: #F6F4FA as the surface, #CAC0ED for borders, #5D4B9B for secondary text, #A7A425 as an accent and #2B1A66 for hover and pressed states. For a palette, the analogous pair #2E53B7 and #922EB7 stays calm, while #98B72E is the loudest partner.

What is #4d2eb7 in CMYK for printing?

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

Is #4d2eb7 warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7F2EB7; nudged cooler, #2C40B9.

Work with #4d2eb7 in the Color Lab