Skip to content

#4f0fd6

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

RGB
79, 15, 214
HSL
259°, 87%, 45%
CMYK
63, 93, 0, 16
Luminance
0.0686

At a glance

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

Hex
#4f0fd6
Hue
259°
violet
Saturation
87%
electric
Lightness
45%
dark
Brightness
84%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0686
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.85:1
Closest name
Blue
ΔE2000 4.8
Where it sits
Hue259° of 360°
Saturation87%
Lightness45%
Temperature
Warm ← → Cool73% 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#4f0fd6
RGBrgb(79, 15, 214)
HSLhsl(259, 87%, 45%)
CMYKcmyk(63%, 93%, 0%, 16%)
LABlab(31.5 68.7 -85.8)
LCHlch(31.5 109.9 308.7)
OKLCHoklch(0.442 0.254 283.0)
Decimal5181398
Display P3color(display-p3 0.310 0.059 0.839)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f0fd6 on white: 8.85:1
AA ✓ pass · AA-large · AAA
Aa
#4f0fd6 on black: 2.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0050DB
deuteranopia · #0044D3
tritanopia · #00587E

Color scale — 50 to 950

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

#F5F2FD
#ECE5FA
#D5C4F7
#B696F8
#9162F4
#6C2DF0
#4f0fd6
#460DBF
#380B99
#2C0C6E
#1B0845
Base = 600Lightest = 50 · #F5F2FDDarkest = 950 · #1B0845
:root {
  --brand-50: #F5F2FD;
  --brand-100: #ECE5FA;
  --brand-200: #D5C4F7;
  --brand-300: #B696F8;
  --brand-400: #9162F4;
  --brand-500: #6C2DF0;
  --brand-600: #4f0fd6;
  --brand-700: #460DBF;
  --brand-800: #380B99;
  --brand-900: #2C0C6E;
  --brand-950: #1B0845;
  --brand: #4f0fd6;
  --brand-ink: #ffffff;
}

Colors that work with #4f0fd6

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#CEC0ED
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#B6C309
Second voice, not a rival
Dark variant#2C0877
Hover, pressed, headers
Light variant#EEE7FD
Selected rows, tints
Dark surface#191424
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 #4f0fd6

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#96D60F
Analogous left#0F32D6
Analogous right#B30FD6
Split-complement 1#D6B30F
Split-complement 2#32D60F
Triadic 1#D64F0F
Triadic 2#0FD64F
Tetradic#D60F32

RGB percentages

Red31.0%
Green5.9%
Blue83.9%

CMYK percentages

Cyan63.1%
Magenta93.0%
Yellow0.0%
Key (black)16.1%

Color previews

#4f0fd6 text on a black background

contrast 2.37:1

Card sample

#4f0fd6 text on a white background

contrast 8.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f0fd6

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.

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

#4f0fd6, answered

What color is #4f0fd6?

#4f0fd6 is a dark electric violet, closest to Blue (ΔE2000 4.8). It sits at 259° on the hue wheel with 87% saturation and 45% lightness, which reads as cool.

What is the RGB value of #4f0fd6?

rgb(79, 15, 214) — 79 red, 15 green and 214 blue out of 255, or 31% / 5.9% / 83.9% by channel.

Is #4f0fd6 a light or a dark color?

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

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

White. It scores 8.85:1 against #4f0fd6, versus 2.37:1 for black — AAA at any size.

What is the complementary color of #4f0fd6?

#96D60F sits directly opposite on the wheel. Softer options are the split-complements #D6B30F and #32D60F, which give the same contrast with far less vibration.

What colors go well with #4f0fd6?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #644B9B for secondary text, #B6C309 as an accent and #2C0877 for hover and pressed states. For a palette, the analogous pair #0F32D6 and #B30FD6 stays calm, while #96D60F is the loudest partner.

What is #4f0fd6 in CMYK for printing?

cmyk(63%, 93%, 0%, 16%). 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 #4f0fd6 warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #980FD6; nudged cooler, #0D16D8.

Work with #4f0fd6 in the Color Lab