Skip to content

#4f079b

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

RGB
79, 7, 155
HSL
269°, 91%, 32%
CMYK
49, 96, 0, 39
Luminance
0.0418

At a glance

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

Hex
#4f079b
Hue
269°
violet
Saturation
91%
electric
Lightness
32%
dark
Brightness
61%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0418
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Electric
Best ink
White
11.44:1
Closest name
Indigo
ΔE2000 3.9
Where it sits
Hue269° of 360°
Saturation91%
Lightness32%
Temperature
Warm ← → Cool67% 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#4f079b
RGBrgb(79, 7, 155)
HSLhsl(269, 91%, 32%)
CMYKcmyk(49%, 96%, 0%, 39%)
LABlab(24.3 56.2 -62.6)
LCHlch(24.3 84.1 311.9)
OKLCHoklch(0.374 0.199 295.5)
Decimal5179291
Display P3color(display-p3 0.310 0.027 0.608)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f079b on white: 11.44:1
AA ✓ pass · AA-large · AAA
Aa
#4f079b on black: 1.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003B9F
deuteranopia · #003799
tritanopia · #383B5A

Color scale — 50 to 950

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

#F7F2FD
#EFE4FB
#DDC3F9
#C694FA
#A95EF8
#8C28F5
#770BEA
#6409C3
#4f079b
#3C0A71
#250646
Base = 800Lightest = 50 · #F7F2FDDarkest = 950 · #250646
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE4FB;
  --brand-200: #DDC3F9;
  --brand-300: #C694FA;
  --brand-400: #A95EF8;
  --brand-500: #8C28F5;
  --brand-600: #770BEA;
  --brand-700: #6409C3;
  --brand-800: #4f079b;
  --brand-900: #3C0A71;
  --brand-950: #250646;
  --brand: #4f079b;
  --brand-ink: #ffffff;
}

Colors that work with #4f079b

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#F7F4FA
Tinted page background
Border#D6C0ED
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#9AC705
Second voice, not a rival
Dark variant#3E057A
Hover, pressed, headers
Light variant#F2E7FE
Selected rows, tints
Dark surface#1C1424
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 #4f079b

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#539B07
Analogous left#07099B
Analogous right#99079B
Split-complement 1#9B9907
Split-complement 2#099B07
Triadic 1#9B4F07
Triadic 2#079B4F
Tetradic#9B0709

RGB percentages

Red31.0%
Green2.7%
Blue60.8%

CMYK percentages

Cyan49.0%
Magenta95.5%
Yellow0.0%
Key (black)39.2%

Color previews

#4f079b text on a black background

contrast 1.84:1

Card sample

#4f079b text on a white background

contrast 11.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f079b

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.

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

#4f079b, answered

What color is #4f079b?

#4f079b is a dark electric violet, closest to Indigo (ΔE2000 3.9). It sits at 269° on the hue wheel with 91% saturation and 32% lightness, which reads as cool.

What is the RGB value of #4f079b?

rgb(79, 7, 155) — 79 red, 7 green and 155 blue out of 255, or 31% / 2.7% / 60.8% by channel.

Is #4f079b a light or a dark color?

It is a dark color. Relative luminance is 0.0418 and perceived brightness is 27%, so white text on it reaches 11.44:1.

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

White. It scores 11.44:1 against #4f079b, versus 1.84:1 for black — AAA at any size.

What is the complementary color of #4f079b?

#539B07 sits directly opposite on the wheel. Softer options are the split-complements #9B9907 and #099B07, which give the same contrast with far less vibration.

What colors go well with #4f079b?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #724B9B for secondary text, #9AC705 as an accent and #3E057A for hover and pressed states. For a palette, the analogous pair #07099B and #99079B stays calm, while #539B07 is the loudest partner.

What is #4f079b in CMYK for printing?

cmyk(49%, 96%, 0%, 39%). 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 #4f079b warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #85079B; nudged cooler, #18059D.

Work with #4f079b in the Color Lab