Skip to content

#c52fec

a balanced, electric violet · neutral · closest name: Medium Orchid

RGB
197, 47, 236
HSL
288°, 83%, 56%
CMYK
17, 80, 0, 8
Luminance
0.1996

At a glance

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

Hex
#c52fec
Hue
288°
violet
Saturation
83%
electric
Lightness
56%
balanced
Brightness
93%
HSV value
Perceived
54%
weighted brightness
Luminance
0.1996
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.99:1
Closest name
Medium Orchid
ΔE2000 5.7
Where it sits
Hue288° of 360°
Saturation83%
Lightness56%
Temperature
Warm ← → Cool57% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#c52fec
RGBrgb(197, 47, 236)
HSLhsl(288, 83%, 56%)
CMYKcmyk(17%, 80%, 0%, 8%)
LABlab(51.8 79.9 -64.4)
LCHlch(51.8 102.7 321.1)
OKLCHoklch(0.620 0.271 317.9)
Decimal12922860
Display P3color(display-p3 0.773 0.184 0.925)

Copy-ready code

/* CSS */
color: #c52fec;
background-color: #c52fec;
/* Tailwind (arbitrary) */
class="text-[#c52fec] bg-[#c52fec]"
/* SCSS */
$brand: #c52fec;
/* SwiftUI */
Color(red: 0.773, green: 0.184, blue: 0.925)
/* Android */
Color.parseColor("#c52fec")
/* Flutter */
Color(0xFFC52FEC)
/* Python / OpenCV (BGR) */
(236, 47, 197)

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

Accessibility — WCAG contrast

Aa
#c52fec on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#c52fec on black: 4.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0072F1
deuteranopia · #3780E8
tritanopia · #C45C90

Color scale — 50 to 950

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

#FAF2FC
#F6E6FA
#ECC6F6
#E298F6
#D465F1
#c52fec
#B614E0
#9811BB
#790E96
#590E6C
#370944
Base = 500Lightest = 50 · #FAF2FCDarkest = 950 · #370944
:root {
  --brand-50: #FAF2FC;
  --brand-100: #F6E6FA;
  --brand-200: #ECC6F6;
  --brand-300: #E298F6;
  --brand-400: #D465F1;
  --brand-500: #c52fec;
  --brand-600: #B614E0;
  --brand-700: #9811BB;
  --brand-800: #790E96;
  --brand-900: #590E6C;
  --brand-950: #370944;
  --brand: #c52fec;
  --brand-ink: #000000;
}

Colors that work with #c52fec

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F9F4FA
Tinted page background
Border#E3C0ED
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#5EBF0D
Second voice, not a rival
Dark variant#5F0B75
Hover, pressed, headers
Light variant#F8E8FD
Selected rows, tints
Dark surface#211424
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 #c52fec

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#56EC2F
Analogous left#662FEC
Analogous right#EC2FB5
Split-complement 1#B5EC2F
Split-complement 2#2FEC66
Triadic 1#ECC52F
Triadic 2#2FECC5
Tetradic#EC662F

RGB percentages

Red77.3%
Green18.4%
Blue92.5%

CMYK percentages

Cyan16.5%
Magenta80.1%
Yellow0.0%
Key (black)7.5%

Color previews

#c52fec text on a black background

contrast 4.99:1

Card sample

#c52fec text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(197, 47, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 47, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c52fec;
background: linear-gradient(135deg, #c52fec, #EC2F95);

Monochromatic scale

Palettes built from #c52fec

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.

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

#c52fec, answered

What color is #c52fec?

#c52fec is a balanced electric violet, closest to Medium Orchid (ΔE2000 5.7). It sits at 288° on the hue wheel with 83% saturation and 56% lightness, which reads as neutral.

What is the RGB value of #c52fec?

rgb(197, 47, 236) — 197 red, 47 green and 236 blue out of 255, or 77.3% / 18.4% / 92.5% by channel.

Is #c52fec a light or a dark color?

It is a mid-tone. Relative luminance is 0.1996 and perceived brightness is 54%, so black text on it reaches 4.99:1.

Should I use black or white text on #c52fec?

Black. It scores 4.99:1 against #c52fec, versus 4.21:1 for white — AA at any size.

What is the complementary color of #c52fec?

#56EC2F sits directly opposite on the wheel. Softer options are the split-complements #B5EC2F and #2FEC66, which give the same contrast with far less vibration.

What colors go well with #c52fec?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #5EBF0D as an accent and #5F0B75 for hover and pressed states. For a palette, the analogous pair #662FEC and #EC2FB5 stays calm, while #56EC2F is the loudest partner.

What is #c52fec in CMYK for printing?

cmyk(17%, 80%, 0%, 8%). 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 #c52fec warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC2FCE; nudged cooler, #7F2DEE.

Work with #c52fec in the Color Lab