Skip to content

#eb7afb

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

RGB
235, 122, 251
HSL
293°, 94%, 73%
CMYK
6, 51, 0, 2
Luminance
0.3855

At a glance

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

Hex
#eb7afb
Hue
293°
magenta / pink
Saturation
94%
electric
Lightness
73%
light
Brightness
98%
HSV value
Perceived
71%
weighted brightness
Luminance
0.3855
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
8.71:1
Closest name
Violet
ΔE2000 3.2
Where it sits
Hue293° of 360°
Saturation94%
Lightness73%
Temperature
Warm ← → Cool54% 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#eb7afb
RGBrgb(235, 122, 251)
HSLhsl(293, 94%, 73%)
CMYKcmyk(6%, 51%, 0%, 2%)
LABlab(68.4 61.7 -46.0)
LCHlch(68.4 77.0 323.3)
OKLCHoklch(0.754 0.209 322.5)
Decimal15432443
Display P3color(display-p3 0.922 0.478 0.984)

Copy-ready code

/* CSS */
color: #eb7afb;
background-color: #eb7afb;
/* Tailwind (arbitrary) */
class="text-[#eb7afb] bg-[#eb7afb]"
/* SCSS */
$brand: #eb7afb;
/* SwiftUI */
Color(red: 0.922, green: 0.478, blue: 0.984)
/* Android */
Color.parseColor("#eb7afb")
/* Flutter */
Color(0xFFEB7AFB)
/* Python / OpenCV (BGR) */
(251, 122, 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 #eb7afb · 8.71:1
Use #000000AAA at every size.
Aa
White text · 2.41:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.71:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #eb7afb as text scores 2.41:1 on white and 8.71:1 on black.

Accessibility — WCAG contrast

Aa
#eb7afb on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#eb7afb on black: 8.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #669EFF
deuteranopia · #8AABF7
tritanopia · #EE8BB0

Color scale — 50 to 950

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

#FCF2FD
#F8E4FB
#F3C2FA
#eb7afb
#E75CFA
#DE25F8
#D107EE
#AE06C6
#8C059E
#650872
#3F0547
Base = 300Lightest = 50 · #FCF2FDDarkest = 950 · #3F0547
:root {
  --brand-50: #FCF2FD;
  --brand-100: #F8E4FB;
  --brand-200: #F3C2FA;
  --brand-300: #eb7afb;
  --brand-400: #E75CFA;
  --brand-500: #DE25F8;
  --brand-600: #D107EE;
  --brand-700: #AE06C6;
  --brand-800: #8C059E;
  --brand-900: #650872;
  --brand-950: #3F0547;
  --brand: #eb7afb;
  --brand-ink: #000000;
}

Colors that work with #eb7afb

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#914B9B
Captions on the surface
Accent#4CCA02
Second voice, not a rival
Dark variant#6D047C
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 #eb7afb

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#8AFB7A
Analogous left#AA7AFB
Analogous right#FB7ACA
Split-complement 1#CAFB7A
Split-complement 2#7AFBAA
Triadic 1#FBEB7A
Triadic 2#7AFBEB
Tetradic#FBAA7A

RGB percentages

Red92.2%
Green47.8%
Blue98.4%

CMYK percentages

Cyan6.4%
Magenta51.4%
Yellow0.0%
Key (black)1.6%

Color previews

#eb7afb text on a black background

contrast 8.71:1

Card sample

#eb7afb text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eb7afb

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.

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

#eb7afb, answered

What color is #eb7afb?

#eb7afb is a light electric magenta / pink, closest to Violet (ΔE2000 3.2). It sits at 293° on the hue wheel with 94% saturation and 73% lightness, which reads as neutral.

What is the RGB value of #eb7afb?

rgb(235, 122, 251) — 235 red, 122 green and 251 blue out of 255, or 92.2% / 47.8% / 98.4% by channel.

Is #eb7afb a light or a dark color?

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

Should I use black or white text on #eb7afb?

Black. It scores 8.71:1 against #eb7afb, versus 2.41:1 for white — AAA at any size.

What is the complementary color of #eb7afb?

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

What colors go well with #eb7afb?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #914B9B for secondary text, #4CCA02 as an accent and #6D047C for hover and pressed states. For a palette, the analogous pair #AA7AFB and #FB7ACA stays calm, while #8AFB7A is the loudest partner.

What is #eb7afb in CMYK for printing?

cmyk(6%, 51%, 0%, 2%). 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 #eb7afb warm or cool?

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

Work with #eb7afb in the Color Lab