Skip to content

#eb7efc

a light, electric magenta / pink · neutral · closest name: Violet

RGB
235, 126, 252
HSL
292°, 96%, 74%
CMYK
7, 50, 0, 1
Luminance
0.3961

At a glance

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

Hex
#eb7efc
Hue
292°
magenta / pink
Saturation
96%
electric
Lightness
74%
light
Brightness
99%
HSV value
Perceived
71%
weighted brightness
Luminance
0.3961
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
8.92:1
Closest name
Violet
ΔE2000 2.9
Where it sits
Hue292° of 360°
Saturation96%
Lightness74%
Temperature
Warm ← → Cool55% 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#eb7efc
RGBrgb(235, 126, 252)
HSLhsl(292, 96%, 74%)
CMYKcmyk(7%, 50%, 0%, 1%)
LABlab(69.2 60.0 -45.3)
LCHlch(69.2 75.2 323.0)
OKLCHoklch(0.759 0.204 322.1)
Decimal15433468
Display P3color(display-p3 0.922 0.494 0.988)

Copy-ready code

/* CSS */
color: #eb7efc;
background-color: #eb7efc;
/* Tailwind (arbitrary) */
class="text-[#eb7efc] bg-[#eb7efc]"
/* SCSS */
$brand: #eb7efc;
/* SwiftUI */
Color(red: 0.922, green: 0.494, blue: 0.988)
/* Android */
Color.parseColor("#eb7efc")
/* Flutter */
Color(0xFFEB7EFC)
/* Python / OpenCV (BGR) */
(252, 126, 235)

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

Accessibility — WCAG contrast

Aa
#eb7efc on white: 2.35:1
AA ✗ fail · AA-large · AAA
Aa
#eb7efc on black: 8.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6BA1FF
deuteranopia · #8CADF8
tritanopia · #EE8FB2

Color scale — 50 to 950

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

#FCF1FD
#F8E4FC
#F3C2FA
#eb7efc
#E65AFB
#DD24FA
#D006EF
#AD05C7
#8A04A0
#640773
#3F0548
Base = 300Lightest = 50 · #FCF1FDDarkest = 950 · #3F0548
:root {
  --brand-50: #FCF1FD;
  --brand-100: #F8E4FC;
  --brand-200: #F3C2FA;
  --brand-300: #eb7efc;
  --brand-400: #E65AFB;
  --brand-500: #DD24FA;
  --brand-600: #D006EF;
  --brand-700: #AD05C7;
  --brand-800: #8A04A0;
  --brand-900: #640773;
  --brand-950: #3F0548;
  --brand: #eb7efc;
  --brand-ink: #000000;
}

Colors that work with #eb7efc

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#E7C0ED
Hairlines and dividers
Muted text#904B9B
Captions on the surface
Accent#4FCC00
Second voice, not a rival
Dark variant#6C037D
Hover, pressed, headers
Light variant#FBE6FE
Selected rows, tints
Dark surface#221424
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 #eb7efc

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#8FFC7E
Analogous left#AC7EFC
Analogous right#FC7ECE
Split-complement 1#CEFC7E
Split-complement 2#7EFCAC
Triadic 1#FCEB7E
Triadic 2#7EFCEB
Tetradic#FCAC7E

RGB percentages

Red92.2%
Green49.4%
Blue98.8%

CMYK percentages

Cyan6.7%
Magenta50.0%
Yellow0.0%
Key (black)1.2%

Color previews

#eb7efc text on a black background

contrast 8.92:1

Card sample

#eb7efc text on a white background

contrast 2.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(235, 126, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(235, 126, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eb7efc;
background: linear-gradient(135deg, #eb7efc, #FC7EB9);

Monochromatic scale

Palettes built from #eb7efc

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.

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

#eb7efc, answered

What color is #eb7efc?

#eb7efc is a light electric magenta / pink, closest to Violet (ΔE2000 2.9). It sits at 292° on the hue wheel with 96% saturation and 74% lightness, which reads as neutral.

What is the RGB value of #eb7efc?

rgb(235, 126, 252) — 235 red, 126 green and 252 blue out of 255, or 92.2% / 49.4% / 98.8% by channel.

Is #eb7efc a light or a dark color?

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

Should I use black or white text on #eb7efc?

Black. It scores 8.92:1 against #eb7efc, versus 2.35:1 for white — AAA at any size.

What is the complementary color of #eb7efc?

#8FFC7E sits directly opposite on the wheel. Softer options are the split-complements #CEFC7E and #7EFCAC, which give the same contrast with far less vibration.

What colors go well with #eb7efc?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #904B9B for secondary text, #4FCC00 as an accent and #6C037D for hover and pressed states. For a palette, the analogous pair #AC7EFC and #FC7ECE stays calm, while #8FFC7E is the loudest partner.

What is #eb7efc in CMYK for printing?

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

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

Work with #eb7efc in the Color Lab