Skip to content

#c04fec

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

RGB
192, 79, 236
HSL
283°, 81%, 62%
CMYK
19, 67, 0, 8
Luminance
0.2285

At a glance

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

Hex
#c04fec
Hue
283°
violet
Saturation
81%
electric
Lightness
62%
balanced
Brightness
93%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2285
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.57:1
Closest name
Medium Orchid
ΔE2000 3.7
Where it sits
Hue283° of 360°
Saturation81%
Lightness62%
Temperature
Warm ← → Cool59% 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#c04fec
RGBrgb(192, 79, 236)
HSLhsl(283, 81%, 62%)
CMYKcmyk(19%, 67%, 0%, 8%)
LABlab(54.9 68.0 -59.4)
LCHlch(54.9 90.3 318.8)
OKLCHoklch(0.641 0.236 315.0)
Decimal12603372
Display P3color(display-p3 0.753 0.310 0.925)

Copy-ready code

/* CSS */
color: #c04fec;
background-color: #c04fec;
/* Tailwind (arbitrary) */
class="text-[#c04fec] bg-[#c04fec]"
/* SCSS */
$brand: #c04fec;
/* SwiftUI */
Color(red: 0.753, green: 0.310, blue: 0.925)
/* Android */
Color.parseColor("#c04fec")
/* Flutter */
Color(0xFFC04FEC)
/* Python / OpenCV (BGR) */
(236, 79, 192)

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

Accessibility — WCAG contrast

Aa
#c04fec on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#c04fec on black: 5.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007DF1
deuteranopia · #4B86E8
tritanopia · #BC6E97

Color scale — 50 to 950

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

#F9F3FC
#F4E6F9
#E8C6F5
#DB9AF4
#c04fec
#B734E9
#A618DD
#8A14B8
#6F1093
#51106B
#330A43
Base = 400Lightest = 50 · #F9F3FCDarkest = 950 · #330A43
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F4E6F9;
  --brand-200: #E8C6F5;
  --brand-300: #DB9AF4;
  --brand-400: #c04fec;
  --brand-500: #B734E9;
  --brand-600: #A618DD;
  --brand-700: #8A14B8;
  --brand-800: #6F1093;
  --brand-900: #51106B;
  --brand-950: #330A43;
  --brand: #c04fec;
  --brand-ink: #000000;
}

Colors that work with #c04fec

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#E0C0ED
Hairlines and dividers
Muted text#844B9B
Captions on the surface
Accent#6CBC10
Second voice, not a rival
Dark variant#560C73
Hover, pressed, headers
Light variant#F7E8FD
Selected rows, tints
Dark surface#201424
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 #c04fec

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#7BEC4F
Analogous left#724FEC
Analogous right#EC4FCA
Split-complement 1#CAEC4F
Split-complement 2#4FEC72
Triadic 1#ECC04F
Triadic 2#4FECC0
Tetradic#EC724F

RGB percentages

Red75.3%
Green31.0%
Blue92.5%

CMYK percentages

Cyan18.6%
Magenta66.5%
Yellow0.0%
Key (black)7.5%

Color previews

#c04fec text on a black background

contrast 5.57:1

Card sample

#c04fec text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c04fec

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.

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

#c04fec, answered

What color is #c04fec?

#c04fec is a balanced electric violet, closest to Medium Orchid (ΔE2000 3.7). It sits at 283° on the hue wheel with 81% saturation and 62% lightness, which reads as cool.

What is the RGB value of #c04fec?

rgb(192, 79, 236) — 192 red, 79 green and 236 blue out of 255, or 75.3% / 31% / 92.5% by channel.

Is #c04fec a light or a dark color?

It is a mid-tone. Relative luminance is 0.2285 and perceived brightness is 57%, so black text on it reaches 5.57:1.

Should I use black or white text on #c04fec?

Black. It scores 5.57:1 against #c04fec, versus 3.77:1 for white — AA at any size.

What is the complementary color of #c04fec?

#7BEC4F sits directly opposite on the wheel. Softer options are the split-complements #CAEC4F and #4FEC72, which give the same contrast with far less vibration.

What colors go well with #c04fec?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #844B9B for secondary text, #6CBC10 as an accent and #560C73 for hover and pressed states. For a palette, the analogous pair #724FEC and #EC4FCA stays calm, while #7BEC4F is the loudest partner.

What is #c04fec in CMYK for printing?

cmyk(19%, 67%, 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 #c04fec warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC4FDE; nudged cooler, #864DEE.

Work with #c04fec in the Color Lab