Skip to content

#7c52cf

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

RGB
124, 82, 207
HSL
260°, 57%, 57%
CMYK
40, 60, 0, 19
Luminance
0.1482

At a glance

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

Hex
#7c52cf
Hue
260°
violet
Saturation
57%
vivid
Lightness
57%
balanced
Brightness
81%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1482
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.30:1
Closest name
Slate Blue
ΔE2000 4.2
Where it sits
Hue260° of 360°
Saturation57%
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#7c52cf
RGBrgb(124, 82, 207)
HSLhsl(260, 57%, 57%)
CMYKcmyk(40%, 60%, 0%, 19%)
LABlab(45.4 45.1 -58.8)
LCHlch(45.4 74.1 307.5)
OKLCHoklch(0.548 0.185 295.1)
Decimal8147663
Display P3color(display-p3 0.486 0.322 0.812)

Copy-ready code

/* CSS */
color: #7c52cf;
background-color: #7c52cf;
/* Tailwind (arbitrary) */
class="text-[#7c52cf] bg-[#7c52cf]"
/* SCSS */
$brand: #7c52cf;
/* SwiftUI */
Color(red: 0.486, green: 0.322, blue: 0.812)
/* Android */
Color.parseColor("#7c52cf")
/* Flutter */
Color(0xFF7C52CF)
/* Python / OpenCV (BGR) */
(207, 82, 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 #7c52cf · 5.30:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.30:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.96:1
AA fail · AA large pass · AAA fail
Reading the other direction: #7c52cf as text scores 5.30:1 on white and 3.96:1 on black.

Accessibility — WCAG contrast

Aa
#7c52cf on white: 5.30:1
AA ✓ pass · AA-large · AAA
Aa
#7c52cf on black: 3.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006CD3
deuteranopia · #0E6ACC
tritanopia · #676E89

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7c52cf 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
#EDE9F6
#D8CDEE
#BDA7E7
#9B7BDA
#7c52cf
#6435C0
#532CA0
#432380
#331D5D
#20123A
Base = 500Lightest = 50 · #F6F4FBDarkest = 950 · #20123A
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE9F6;
  --brand-200: #D8CDEE;
  --brand-300: #BDA7E7;
  --brand-400: #9B7BDA;
  --brand-500: #7c52cf;
  --brand-600: #6435C0;
  --brand-700: #532CA0;
  --brand-800: #432380;
  --brand-900: #331D5D;
  --brand-950: #20123A;
  --brand: #7c52cf;
  --brand-ink: #ffffff;
}

Colors that work with #7c52cf

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#99A329
Second voice, not a rival
Dark variant#341C64
Hover, pressed, headers
Light variant#F0EBF9
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 #7c52cf

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#A5CF52
Analogous left#5267CF
Analogous right#BB52CF
Split-complement 1#CFBB52
Split-complement 2#67CF52
Triadic 1#CF7C52
Triadic 2#52CF7C
Tetradic#CF5267

RGB percentages

Red48.6%
Green32.2%
Blue81.2%

CMYK percentages

Cyan40.1%
Magenta60.4%
Yellow0.0%
Key (black)18.8%

Color previews

#7c52cf text on a black background

contrast 3.96:1

Card sample

#7c52cf text on a white background

contrast 5.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7c52cf

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.

#7c52cf 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.

#7c52cf, answered

What color is #7c52cf?

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

What is the RGB value of #7c52cf?

rgb(124, 82, 207) — 124 red, 82 green and 207 blue out of 255, or 48.6% / 32.2% / 81.2% by channel.

Is #7c52cf a light or a dark color?

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

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

White. It scores 5.30:1 against #7c52cf, versus 3.96:1 for black — AA at any size.

What is the complementary color of #7c52cf?

#A5CF52 sits directly opposite on the wheel. Softer options are the split-complements #CFBB52 and #67CF52, which give the same contrast with far less vibration.

What colors go well with #7c52cf?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #664B9B for secondary text, #99A329 as an accent and #341C64 for hover and pressed states. For a palette, the analogous pair #5267CF and #BB52CF stays calm, while #A5CF52 is the loudest partner.

What is #7c52cf in CMYK for printing?

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

Is #7c52cf 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 #AA52CF; nudged cooler, #5054D1.

Work with #7c52cf in the Color Lab