Skip to content

#7c4fd4

a balanced, vivid violet · cool · closest name: Slate Blue

RGB
124, 79, 212
HSL
260°, 61%, 57%
CMYK
42, 63, 0, 17
Luminance
0.1463

At a glance

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

Hex
#7c4fd4
Hue
260°
violet
Saturation
61%
vivid
Lightness
57%
balanced
Brightness
83%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1463
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.35:1
Closest name
Slate Blue
ΔE2000 4.6
Where it sits
Hue260° of 360°
Saturation61%
Lightness57%
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#7c4fd4
RGBrgb(124, 79, 212)
HSLhsl(260, 61%, 57%)
CMYKcmyk(42%, 63%, 0%, 17%)
LABlab(45.1 48.1 -62.0)
LCHlch(45.1 78.5 307.8)
OKLCHoklch(0.548 0.195 294.7)
Decimal8146900
Display P3color(display-p3 0.486 0.310 0.831)

Copy-ready code

/* CSS */
color: #7c4fd4;
background-color: #7c4fd4;
/* Tailwind (arbitrary) */
class="text-[#7c4fd4] bg-[#7c4fd4]"
/* SCSS */
$brand: #7c4fd4;
/* SwiftUI */
Color(red: 0.486, green: 0.310, blue: 0.831)
/* Android */
Color.parseColor("#7c4fd4")
/* Flutter */
Color(0xFF7C4FD4)
/* Python / OpenCV (BGR) */
(212, 79, 124)

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 #7c4fd4 · 5.35:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.35:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.93:1
AA fail · AA large pass · AAA fail
Reading the other direction: #7c4fd4 as text scores 5.35:1 on white and 3.93:1 on black.

Accessibility — WCAG contrast

Aa
#7c4fd4 on white: 5.35:1
AA ✓ pass · AA-large · AAA
Aa
#7c4fd4 on black: 3.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006CD8
deuteranopia · #0069D1
tritanopia · #656D8A

Color scale — 50 to 950

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

#F6F4FB
#EDE8F7
#D8CCF0
#BCA5E9
#9A78DE
#7c4fd4
#6230C5
#5228A4
#422083
#321B5F
#1F113C
Base = 500Lightest = 50 · #F6F4FBDarkest = 950 · #1F113C
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE8F7;
  --brand-200: #D8CCF0;
  --brand-300: #BCA5E9;
  --brand-400: #9A78DE;
  --brand-500: #7c4fd4;
  --brand-600: #6230C5;
  --brand-700: #5228A4;
  --brand-800: #422083;
  --brand-900: #321B5F;
  --brand-950: #1F113C;
  --brand: #7c4fd4;
  --brand-ink: #ffffff;
}

Colors that work with #7c4fd4

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#CFC0ED
Hairlines and dividers
Muted text#664B9B
Captions on the surface
Accent#9DA824
Second voice, not a rival
Dark variant#331966
Hover, pressed, headers
Light variant#F0EBFA
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 #7c4fd4

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
  • 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#A7D44F
Analogous left#4F65D4
Analogous right#BF4FD4
Split-complement 1#D4BF4F
Split-complement 2#65D44F
Triadic 1#D47C4F
Triadic 2#4FD47C
Tetradic#D44F65

RGB percentages

Red48.6%
Green31.0%
Blue83.1%

CMYK percentages

Cyan41.5%
Magenta62.7%
Yellow0.0%
Key (black)16.9%

Color previews

#7c4fd4 text on a black background

contrast 3.93:1

Card sample

#7c4fd4 text on a white background

contrast 5.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7c4fd4;
Background color
Panel with #7c4fd4 background
background-color: #7c4fd4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7c4fd4;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #7c4fd4

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.

#7c4fd4 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

Converts to four-color process without much drama. Proof it anyway.

#7c4fd4, answered

What color is #7c4fd4?

#7c4fd4 is a balanced vivid violet, closest to Slate Blue (ΔE2000 4.6). It sits at 260° on the hue wheel with 61% saturation and 57% lightness, which reads as cool.

What is the RGB value of #7c4fd4?

rgb(124, 79, 212) — 124 red, 79 green and 212 blue out of 255, or 48.6% / 31% / 83.1% by channel.

Is #7c4fd4 a light or a dark color?

It is a dark color. Relative luminance is 0.1463 and perceived brightness is 45%, so white text on it reaches 5.35:1.

Should I use black or white text on #7c4fd4?

White. It scores 5.35:1 against #7c4fd4, versus 3.93:1 for black — AA at any size.

What is the complementary color of #7c4fd4?

#A7D44F sits directly opposite on the wheel. Softer options are the split-complements #D4BF4F and #65D44F, which give the same contrast with far less vibration.

What colors go well with #7c4fd4?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #664B9B for secondary text, #9DA824 as an accent and #331966 for hover and pressed states. For a palette, the analogous pair #4F65D4 and #BF4FD4 stays calm, while #A7D44F is the loudest partner.

What is #7c4fd4 in CMYK for printing?

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

Is #7c4fd4 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 #AD4FD4; nudged cooler, #4D51D6.

Work with #7c4fd4 in the Color Lab