Skip to content

#ec7fef

a light, electric magenta / pink · neutral · “Violet”

RGB
236, 127, 239
HSL
298°, 78%, 72%
CMYK
1, 47, 0, 6
Luminance
0.3924

At a glance

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

Hex
#ec7fef
Hue
298°
magenta / pink
Saturation
78%
electric
Lightness
72%
light
Brightness
94%
HSV value
Perceived
71%
weighted brightness
Luminance
0.3924
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
8.85:1
Closest name
Violet
ΔE2000 0.9
Where it sits
Hue298° of 360°
Saturation78%
Lightness72%
Temperature
Warm ← → Cool51% 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#ec7fef
RGBrgb(236, 127, 239)
HSLhsl(298, 78%, 72%)
CMYKcmyk(1%, 47%, 0%, 6%)
LABlab(68.9 57.4 -38.6)
LCHlch(68.9 69.2 326.1)
OKLCHoklch(0.756 0.191 326.3)
Decimal15499247
Display P3color(display-p3 0.925 0.498 0.937)

Copy-ready code

/* CSS */
color: #ec7fef;
background-color: #ec7fef;
/* Tailwind (arbitrary) */
class="text-[#ec7fef] bg-[#ec7fef]"
/* SCSS */
$brand: #ec7fef;
/* SwiftUI */
Color(red: 0.925, green: 0.498, blue: 0.937)
/* Android */
Color.parseColor("#ec7fef")
/* Flutter */
Color(0xFFEC7FEF)
/* Python / OpenCV (BGR) */
(239, 127, 236)

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

Accessibility — WCAG contrast

Aa
#ec7fef on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#ec7fef on black: 8.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #749FF3
deuteranopia · #94ADEC
tritanopia · #F18BAC

Color scale — 50 to 950

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

#FCF3FC
#F8E6F9
#F3C7F5
#F09BF3
#ec7fef
#E138E6
#D51BDA
#B117B5
#8E1291
#671169
#400B42
Base = 400Lightest = 50 · #FCF3FCDarkest = 950 · #400B42
:root {
  --brand-50: #FCF3FC;
  --brand-100: #F8E6F9;
  --brand-200: #F3C7F5;
  --brand-300: #F09BF3;
  --brand-400: #ec7fef;
  --brand-500: #E138E6;
  --brand-600: #D51BDA;
  --brand-700: #B117B5;
  --brand-800: #8E1291;
  --brand-900: #671169;
  --brand-950: #400B42;
  --brand: #ec7fef;
  --brand-ink: #000000;
}

Colors that work with #ec7fef

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#FAF4FA
Tinted page background
Border#EBC0ED
Hairlines and dividers
Muted text#994B9B
Captions on the surface
Accent#41BA12
Second voice, not a rival
Dark variant#6F0E71
Hover, pressed, headers
Light variant#FCE8FC
Selected rows, tints
Dark surface#241424
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 #ec7fef

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White 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#82EF7F
Analogous left#B47FEF
Analogous right#EF7FBA
Split-complement 1#BAEF7F
Split-complement 2#7FEFB4
Triadic 1#EFEC7F
Triadic 2#7FEFEC
Tetradic#EFB47F

RGB percentages

Red92.5%
Green49.8%
Blue93.7%

CMYK percentages

Cyan1.3%
Magenta46.9%
Yellow0.0%
Key (black)6.3%

Color previews

#ec7fef text on a black background

contrast 8.85:1

Card sample

#ec7fef text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec7fef

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.

#ec7fef in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ec7fef, answered

What color is #ec7fef?

#ec7fef is a light electric magenta / pink — the CSS keyword Violet. It sits at 298° on the hue wheel with 78% saturation and 72% lightness, which reads as neutral.

What is the RGB value of #ec7fef?

rgb(236, 127, 239) — 236 red, 127 green and 239 blue out of 255, or 92.5% / 49.8% / 93.7% by channel.

Is #ec7fef a light or a dark color?

It is a mid-tone. Relative luminance is 0.3924 and perceived brightness is 71%, so black text on it reaches 8.85:1.

Should I use black or white text on #ec7fef?

Black. It scores 8.85:1 against #ec7fef, versus 2.37:1 for white — AAA at any size.

What is the complementary color of #ec7fef?

#82EF7F sits directly opposite on the wheel. Softer options are the split-complements #BAEF7F and #7FEFB4, which give the same contrast with far less vibration.

What colors go well with #ec7fef?

For interface work: #FAF4FA as the surface, #EBC0ED for borders, #994B9B for secondary text, #41BA12 as an accent and #6F0E71 for hover and pressed states. For a palette, the analogous pair #B47FEF and #EF7FBA stays calm, while #82EF7F is the loudest partner.

What is #ec7fef in CMYK for printing?

cmyk(1%, 47%, 0%, 6%). 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 #ec7fef warm or cool?

Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EF7FC9; nudged cooler, #C37EF0.

Work with #ec7fef in the Color Lab