Skip to content

#4f0ace

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

RGB
79, 10, 206
HSL
261°, 91%, 42%
CMYK
62, 95, 0, 19
Luminance
0.0634

At a glance

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

Hex
#4f0ace
Hue
261°
violet
Saturation
91%
electric
Lightness
42%
dark
Brightness
81%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0634
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
White
9.26:1
Closest name
Medium Blue
ΔE2000 5
Where it sits
Hue261° of 360°
Saturation91%
Lightness42%
Temperature
Warm ← → Cool72% 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#4f0ace
RGBrgb(79, 10, 206)
HSLhsl(261, 91%, 42%)
CMYKcmyk(62%, 95%, 0%, 19%)
LABlab(30.2 67.7 -83.2)
LCHlch(30.2 107.2 309.1)
OKLCHoklch(0.431 0.247 284.4)
Decimal5180110
Display P3color(display-p3 0.310 0.039 0.808)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f0ace on white: 9.26:1
AA ✓ pass · AA-large · AAA
Aa
#4f0ace on black: 2.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004CD3
deuteranopia · #0041CB
tritanopia · #005479

Color scale — 50 to 950

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

#F6F2FD
#ECE5FB
#D6C3F9
#B894FA
#945FF7
#7129F5
#590BE9
#4f0ace
#3C089C
#2E0A70
#1D0646
Base = 700Lightest = 50 · #F6F2FDDarkest = 950 · #1D0646
:root {
  --brand-50: #F6F2FD;
  --brand-100: #ECE5FB;
  --brand-200: #D6C3F9;
  --brand-300: #B894FA;
  --brand-400: #945FF7;
  --brand-500: #7129F5;
  --brand-600: #590BE9;
  --brand-700: #4f0ace;
  --brand-800: #3C089C;
  --brand-900: #2E0A70;
  --brand-950: #1D0646;
  --brand: #4f0ace;
  --brand-ink: #ffffff;
}

Colors that work with #4f0ace

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#D0C0ED
Hairlines and dividers
Muted text#674B9B
Captions on the surface
Accent#B3C606
Second voice, not a rival
Dark variant#2F067A
Hover, pressed, headers
Light variant#EFE7FE
Selected rows, tints
Dark surface#1A1424
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 #4f0ace

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#89CE0A
Analogous left#0A27CE
Analogous right#B10ACE
Split-complement 1#CEB10A
Split-complement 2#27CE0A
Triadic 1#CE4F0A
Triadic 2#0ACE4F
Tetradic#CE0A27

RGB percentages

Red31.0%
Green3.9%
Blue80.8%

CMYK percentages

Cyan61.7%
Magenta95.1%
Yellow0.0%
Key (black)19.2%

Color previews

#4f0ace text on a black background

contrast 2.27:1

Card sample

#4f0ace text on a white background

contrast 9.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f0ace

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.

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

#4f0ace, answered

What color is #4f0ace?

#4f0ace is a dark electric violet, closest to Medium Blue (ΔE2000 5). It sits at 261° on the hue wheel with 91% saturation and 42% lightness, which reads as cool.

What is the RGB value of #4f0ace?

rgb(79, 10, 206) — 79 red, 10 green and 206 blue out of 255, or 31% / 3.9% / 80.8% by channel.

Is #4f0ace a light or a dark color?

It is a dark color. Relative luminance is 0.0634 and perceived brightness is 32%, so white text on it reaches 9.26:1.

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

White. It scores 9.26:1 against #4f0ace, versus 2.27:1 for black — AAA at any size.

What is the complementary color of #4f0ace?

#89CE0A sits directly opposite on the wheel. Softer options are the split-complements #CEB10A and #27CE0A, which give the same contrast with far less vibration.

What colors go well with #4f0ace?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #674B9B for secondary text, #B3C606 as an accent and #2F067A for hover and pressed states. For a palette, the analogous pair #0A27CE and #B10ACE stays calm, while #89CE0A is the loudest partner.

What is #4f0ace in CMYK for printing?

cmyk(62%, 95%, 0%, 19%). 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 #4f0ace warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #970ACE; nudged cooler, #080BD0.

Work with #4f0ace in the Color Lab