Skip to content

#4c2ac7

a balanced, vivid blue · cool · closest name: Blue

RGB
76, 42, 199
HSL
253°, 65%, 47%
CMYK
62, 79, 0, 22
Luminance
0.0732

At a glance

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

Hex
#4c2ac7
Hue
253°
blue
Saturation
65%
vivid
Lightness
47%
balanced
Brightness
78%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0732
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.53:1
Closest name
Blue
ΔE2000 6.6
Where it sits
Hue253° of 360°
Saturation65%
Lightness47%
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#4c2ac7
RGBrgb(76, 42, 199)
HSLhsl(253, 65%, 47%)
CMYKcmyk(62%, 79%, 0%, 22%)
LABlab(32.5 55.7 -75.3)
LCHlch(32.5 93.7 306.5)
OKLCHoklch(0.443 0.223 282.4)
Decimal4991687
Display P3color(display-p3 0.298 0.165 0.780)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4c2ac7 on white: 8.53:1
AA ✓ pass · AA-large · AAA
Aa
#4c2ac7 on black: 2.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0051CB
deuteranopia · #0047C4
tritanopia · #005979

Color scale — 50 to 950

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

#F5F3FB
#EBE8F7
#D3CBF1
#B2A2EB
#8C74E2
#6546D8
#4c2ac7
#4024A8
#331C87
#281962
#190F3D
Base = 600Lightest = 50 · #F5F3FBDarkest = 950 · #190F3D
:root {
  --brand-50: #F5F3FB;
  --brand-100: #EBE8F7;
  --brand-200: #D3CBF1;
  --brand-300: #B2A2EB;
  --brand-400: #8C74E2;
  --brand-500: #6546D8;
  --brand-600: #4c2ac7;
  --brand-700: #4024A8;
  --brand-800: #331C87;
  --brand-900: #281962;
  --brand-950: #190F3D;
  --brand: #4c2ac7;
  --brand-ink: #ffffff;
}

Colors that work with #4c2ac7

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#C9C0ED
Hairlines and dividers
Muted text#5C4B9B
Captions on the surface
Accent#ADA81F
Second voice, not a rival
Dark variant#281669
Hover, pressed, headers
Light variant#EEEAFB
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 #4c2ac7

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#A5C72A
Analogous left#2A57C7
Analogous right#9B2AC7
Split-complement 1#C79B2A
Split-complement 2#57C72A
Triadic 1#C74C2A
Triadic 2#2AC74C
Tetradic#C72A57

RGB percentages

Red29.8%
Green16.5%
Blue78.0%

CMYK percentages

Cyan61.8%
Magenta78.9%
Yellow0.0%
Key (black)22.0%

Color previews

#4c2ac7 text on a black background

contrast 2.46:1

Card sample

#4c2ac7 text on a white background

contrast 8.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4c2ac7

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.

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

#4c2ac7, answered

What color is #4c2ac7?

#4c2ac7 is a balanced vivid blue, closest to Blue (ΔE2000 6.6). It sits at 253° on the hue wheel with 65% saturation and 47% lightness, which reads as cool.

What is the RGB value of #4c2ac7?

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

Is #4c2ac7 a light or a dark color?

It is a dark color. Relative luminance is 0.0732 and perceived brightness is 33%, so white text on it reaches 8.53:1.

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

White. It scores 8.53:1 against #4c2ac7, versus 2.46:1 for black — AAA at any size.

What is the complementary color of #4c2ac7?

#A5C72A sits directly opposite on the wheel. Softer options are the split-complements #C79B2A and #57C72A, which give the same contrast with far less vibration.

What colors go well with #4c2ac7?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5C4B9B for secondary text, #ADA81F as an accent and #281669 for hover and pressed states. For a palette, the analogous pair #2A57C7 and #9B2AC7 stays calm, while #A5C72A is the loudest partner.

What is #4c2ac7 in CMYK for printing?

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

Is #4c2ac7 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 #862AC7; nudged cooler, #2840CA.

Work with #4c2ac7 in the Color Lab