Skip to content

#4c2ab3

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

RGB
76, 42, 179
HSL
255°, 62%, 43%
CMYK
58, 77, 0, 30
Luminance
0.0645

At a glance

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

Hex
#4c2ab3
Hue
255°
blue
Saturation
62%
vivid
Lightness
43%
dark
Brightness
70%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0645
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.17:1
Closest name
Rebecca Purple
ΔE2000 6.8
Where it sits
Hue255° of 360°
Saturation62%
Lightness43%
Temperature
Warm ← → Cool75% 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#4c2ab3
RGBrgb(76, 42, 179)
HSLhsl(255, 62%, 43%)
CMYKcmyk(58%, 77%, 0%, 30%)
LABlab(30.5 50.0 -66.8)
LCHlch(30.5 83.4 306.8)
OKLCHoklch(0.423 0.200 285.5)
Decimal4991667
Display P3color(display-p3 0.298 0.165 0.702)

Copy-ready code

/* CSS */
color: #4c2ab3;
background-color: #4c2ab3;
/* Tailwind (arbitrary) */
class="text-[#4c2ab3] bg-[#4c2ab3]"
/* SCSS */
$brand: #4c2ab3;
/* SwiftUI */
Color(red: 0.298, green: 0.165, blue: 0.702)
/* Android */
Color.parseColor("#4c2ab3")
/* Flutter */
Color(0xFF4C2AB3)
/* Python / OpenCV (BGR) */
(179, 42, 76)

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

Accessibility — WCAG contrast

Aa
#4c2ab3 on white: 9.17:1
AA ✓ pass · AA-large · AAA
Aa
#4c2ab3 on black: 2.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BB7
deuteranopia · #0044B0
tritanopia · #17516D

Color scale — 50 to 950

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

#F5F4FB
#ECE8F7
#D5CCF0
#B5A4EA
#9177DF
#6C49D4
#542FC6
#4c2ab3
#381F84
#2C1A60
#1B103C
Base = 700Lightest = 50 · #F5F4FBDarkest = 950 · #1B103C
:root {
  --brand-50: #F5F4FB;
  --brand-100: #ECE8F7;
  --brand-200: #D5CCF0;
  --brand-300: #B5A4EA;
  --brand-400: #9177DF;
  --brand-500: #6C49D4;
  --brand-600: #542FC6;
  --brand-700: #4c2ab3;
  --brand-800: #381F84;
  --brand-900: #2C1A60;
  --brand-950: #1B103C;
  --brand: #4c2ab3;
  --brand-ink: #ffffff;
}

Colors that work with #4c2ab3

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#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#A9A923
Second voice, not a rival
Dark variant#2C1867
Hover, pressed, headers
Light variant#EEEAFA
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 #4c2ab3

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#91B32A
Analogous left#2A4CB3
Analogous right#902AB3
Split-complement 1#B3902A
Split-complement 2#4CB32A
Triadic 1#B34C2A
Triadic 2#2AB34C
Tetradic#B32A4C

RGB percentages

Red29.8%
Green16.5%
Blue70.2%

CMYK percentages

Cyan57.5%
Magenta76.5%
Yellow0.0%
Key (black)29.8%

Color previews

#4c2ab3 text on a black background

contrast 2.29:1

Card sample

#4c2ab3 text on a white background

contrast 9.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(76, 42, 179, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(76, 42, 179, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4c2ab3;
background: linear-gradient(135deg, #4c2ab3, #A72AB3);

Monochromatic scale

Palettes built from #4c2ab3

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.

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

#4c2ab3, answered

What color is #4c2ab3?

#4c2ab3 is a dark vivid blue, closest to Rebecca Purple (ΔE2000 6.8). It sits at 255° on the hue wheel with 62% saturation and 43% lightness, which reads as cool.

What is the RGB value of #4c2ab3?

rgb(76, 42, 179) — 76 red, 42 green and 179 blue out of 255, or 29.8% / 16.5% / 70.2% by channel.

Is #4c2ab3 a light or a dark color?

It is a dark color. Relative luminance is 0.0645 and perceived brightness is 31%, so white text on it reaches 9.17:1.

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

White. It scores 9.17:1 against #4c2ab3, versus 2.29:1 for black — AAA at any size.

What is the complementary color of #4c2ab3?

#91B32A sits directly opposite on the wheel. Softer options are the split-complements #B3902A and #4CB32A, which give the same contrast with far less vibration.

What colors go well with #4c2ab3?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #A9A923 as an accent and #2C1867 for hover and pressed states. For a palette, the analogous pair #2A4CB3 and #902AB3 stays calm, while #91B32A is the loudest partner.

What is #4c2ab3 in CMYK for printing?

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

Is #4c2ab3 warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7E2AB3; nudged cooler, #2838B5.

Work with #4c2ab3 in the Color Lab