Skip to content

#4f047f

a dark, electric violet · cool · closest name: Indigo

RGB
79, 4, 127
HSL
277°, 94%, 26%
CMYK
38, 97, 0, 50
Luminance
0.0328

At a glance

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

Hex
#4f047f
Hue
277°
violet
Saturation
94%
electric
Lightness
26%
dark
Brightness
50%
HSV value
Perceived
24%
weighted brightness
Luminance
0.0328
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
White
12.68:1
Closest name
Indigo
ΔE2000 1.1
Where it sits
Hue277° of 360°
Saturation94%
Lightness26%
Temperature
Warm ← → Cool63% 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#4f047f
RGBrgb(79, 4, 127)
HSLhsl(277, 94%, 26%)
CMYKcmyk(38%, 97%, 0%, 50%)
LABlab(21.1 50.5 -50.3)
LCHlch(21.1 71.3 315.1)
OKLCHoklch(0.344 0.175 304.8)
Decimal5178495
Display P3color(display-p3 0.310 0.016 0.498)

Copy-ready code

/* CSS */
color: #4f047f;
background-color: #4f047f;
/* Tailwind (arbitrary) */
class="text-[#4f047f] bg-[#4f047f]"
/* SCSS */
$brand: #4f047f;
/* SwiftUI */
Color(red: 0.310, green: 0.016, blue: 0.498)
/* Android */
Color.parseColor("#4f047f")
/* Flutter */
Color(0xFF4F047F)
/* Python / OpenCV (BGR) */
(127, 4, 79)

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

Accessibility — WCAG contrast

Aa
#4f047f on white: 12.68:1
AA ✓ pass · AA-large · AAA
Aa
#4f047f on black: 1.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003182
deuteranopia · #00337D
tritanopia · #452D48

Color scale — 50 to 950

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

#F9F2FD
#F2E4FB
#E4C2FA
#D292FC
#BC5CFA
#A625F8
#9407ED
#7B06C6
#62059E
#4f047f
#2E0547
Base = 900Lightest = 50 · #F9F2FDDarkest = 950 · #2E0547
:root {
  --brand-50: #F9F2FD;
  --brand-100: #F2E4FB;
  --brand-200: #E4C2FA;
  --brand-300: #D292FC;
  --brand-400: #BC5CFA;
  --brand-500: #A625F8;
  --brand-600: #9407ED;
  --brand-700: #7B06C6;
  --brand-800: #62059E;
  --brand-900: #4f047f;
  --brand-950: #2E0547;
  --brand: #4f047f;
  --brand-ink: #ffffff;
}

Colors that work with #4f047f

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#F8F4FA
Tinted page background
Border#DBC0ED
Hairlines and dividers
Muted text#7C4B9B
Captions on the surface
Accent#538201
Second voice, not a rival
Dark variant#4D047C
Hover, pressed, headers
Light variant#F5E6FE
Selected rows, tints
Dark surface#1E1424
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 #4f047f

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#347F04
Analogous left#12047F
Analogous right#7F0472
Split-complement 1#727F04
Split-complement 2#047F12
Triadic 1#7F4F04
Triadic 2#047F4F
Tetradic#7F1204

RGB percentages

Red31.0%
Green1.6%
Blue49.8%

CMYK percentages

Cyan37.8%
Magenta96.9%
Yellow0.0%
Key (black)50.2%

Color previews

#4f047f text on a black background

contrast 1.66:1

Card sample

#4f047f text on a white background

contrast 12.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 4, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 4, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f047f;
background: linear-gradient(135deg, #4f047f, #7F045D);

Monochromatic scale

Palettes built from #4f047f

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.

#4f047f 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#4f047f, answered

What color is #4f047f?

#4f047f is a dark electric violet, closest to Indigo (ΔE2000 1.1). It sits at 277° on the hue wheel with 94% saturation and 26% lightness, which reads as cool.

What is the RGB value of #4f047f?

rgb(79, 4, 127) — 79 red, 4 green and 127 blue out of 255, or 31% / 1.6% / 49.8% by channel.

Is #4f047f a light or a dark color?

It is a dark color. Relative luminance is 0.0328 and perceived brightness is 24%, so white text on it reaches 12.68:1.

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

White. It scores 12.68:1 against #4f047f, versus 1.66:1 for black — AAA at any size.

What is the complementary color of #4f047f?

#347F04 sits directly opposite on the wheel. Softer options are the split-complements #727F04 and #047F12, which give the same contrast with far less vibration.

What colors go well with #4f047f?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7C4B9B for secondary text, #538201 as an accent and #4D047C for hover and pressed states. For a palette, the analogous pair #12047F and #7F0472 stays calm, while #347F04 is the loudest partner.

What is #4f047f in CMYK for printing?

cmyk(38%, 97%, 0%, 50%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #4f047f warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7C047F; nudged cooler, #210380.

Work with #4f047f in the Color Lab