Skip to content

#ec6797

a light, electric magenta / pink · warm · closest name: Pale Violet Red

RGB
236, 103, 151
HSL
338°, 78%, 67%
CMYK
0, 56, 36, 8
Luminance
0.2977

At a glance

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

Hex
#ec6797
Hue
338°
magenta / pink
Saturation
78%
electric
Lightness
67%
light
Brightness
93%
HSV value
Perceived
63%
weighted brightness
Luminance
0.2977
WCAG relative
Temperature
Warm
29/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
6.95:1
Closest name
Pale Violet Red
ΔE2000 3.3
Where it sits
Hue338° of 360°
Saturation78%
Lightness67%
Temperature
Warm ← → Cool29% cool

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

Every format

HEX#ec6797
RGBrgb(236, 103, 151)
HSLhsl(338, 78%, 67%)
CMYKcmyk(0%, 56%, 36%, 8%)
LABlab(61.5 55.9 -0.3)
LCHlch(61.5 55.9 359.7)
OKLCHoklch(0.690 0.170 360.0)
Decimal15493015
Display P3color(display-p3 0.925 0.404 0.592)

Copy-ready code

/* CSS */
color: #ec6797;
background-color: #ec6797;
/* Tailwind (arbitrary) */
class="text-[#ec6797] bg-[#ec6797]"
/* SCSS */
$brand: #ec6797;
/* SwiftUI */
Color(red: 0.925, green: 0.404, blue: 0.592)
/* Android */
Color.parseColor("#ec6797")
/* Flutter */
Color(0xFFEC6797)
/* Python / OpenCV (BGR) */
(151, 103, 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 #ec6797 · 6.95:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.02:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.95:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ec6797 as text scores 3.02:1 on white and 6.95:1 on black.

Accessibility — WCAG contrast

Aa
#ec6797 on white: 3.02:1
AA ✗ fail · AA-large · AAA
Aa
#ec6797 on black: 6.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7E8598
deuteranopia · #A19E94
tritanopia · #FE5C79

Color scale — 50 to 950

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

#FCF3F6
#F9E6ED
#F5C7D8
#F39BBB
#ec6797
#E63877
#DA1B60
#B51750
#911240
#691131
#420B1F
Base = 400Lightest = 50 · #FCF3F6Darkest = 950 · #420B1F
:root {
  --brand-50: #FCF3F6;
  --brand-100: #F9E6ED;
  --brand-200: #F5C7D8;
  --brand-300: #F39BBB;
  --brand-400: #ec6797;
  --brand-500: #E63877;
  --brand-600: #DA1B60;
  --brand-700: #B51750;
  --brand-800: #911240;
  --brand-900: #691131;
  --brand-950: #420B1F;
  --brand: #ec6797;
  --brand-ink: #000000;
}

Colors that work with #ec6797

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#FAF4F7
Tinted page background
Border#EDC0D0
Hairlines and dividers
Muted text#9B4B68
Captions on the surface
Accent#13B953
Second voice, not a rival
Dark variant#710E32
Hover, pressed, headers
Light variant#FCE8F0
Selected rows, tints
Dark surface#24141A
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 #ec6797

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#67ECBC
Analogous left#EC67DA
Analogous right#EC7A67
Split-complement 1#67EC7A
Split-complement 2#67DAEC
Triadic 1#97EC67
Triadic 2#6797EC
Tetradic#DAEC67

RGB percentages

Red92.5%
Green40.4%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta56.4%
Yellow36.0%
Key (black)7.5%

Color previews

#ec6797 text on a black background

contrast 6.95:1

Card sample

#ec6797 text on a white background

contrast 3.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec6797

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.

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

#ec6797, answered

What color is #ec6797?

#ec6797 is a light electric magenta / pink, closest to Pale Violet Red (ΔE2000 3.3). It sits at 338° on the hue wheel with 78% saturation and 67% lightness, which reads as warm.

What is the RGB value of #ec6797?

rgb(236, 103, 151) — 236 red, 103 green and 151 blue out of 255, or 92.5% / 40.4% / 59.2% by channel.

Is #ec6797 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2977 and perceived brightness is 63%, so black text on it reaches 6.95:1.

Should I use black or white text on #ec6797?

Black. It scores 6.95:1 against #ec6797, versus 3.02:1 for white — AA at any size.

What is the complementary color of #ec6797?

#67ECBC sits directly opposite on the wheel. Softer options are the split-complements #67EC7A and #67DAEC, which give the same contrast with far less vibration.

What colors go well with #ec6797?

For interface work: #FAF4F7 as the surface, #EDC0D0 for borders, #9B4B68 for secondary text, #13B953 as an accent and #710E32 for hover and pressed states. For a palette, the analogous pair #EC67DA and #EC7A67 stays calm, while #67ECBC is the loudest partner.

What is #ec6797 in CMYK for printing?

cmyk(0%, 56%, 36%, 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 #ec6797 warm or cool?

Warm — it scores 29 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC6867; nudged cooler, #EE65C9.

Work with #ec6797 in the Color Lab