#9877da
a light, vivid violet · cool · closest name: Medium Purple
At a glance
Every number on this page in one read: what #9877da is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #9877da |
| RGB | rgb(152, 119, 218) |
| HSL | hsl(260, 57%, 66%) |
| CMYK | cmyk(30%, 45%, 0%, 15%) |
| LAB | lab(57.0 33.9 -46.3) |
| LCH | lch(57.0 57.3 306.2) |
| OKLCH | oklch(0.643 0.146 297.5) |
| Decimal | 9992154 |
| Display P3 | color(display-p3 0.596 0.467 0.855) |
Copy-ready code
/* CSS */
color: #9877da;
background-color: #9877da;
/* Tailwind (arbitrary) */
class="text-[#9877da] bg-[#9877da]"
/* SCSS */
$brand: #9877da;
/* SwiftUI */
Color(red: 0.596, green: 0.467, blue: 0.855)
/* Android */
Color.parseColor("#9877da")
/* Flutter */
Color(0xFF9877DA)
/* Python / OpenCV (BGR) */
(218, 119, 152)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #9877da 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.
:root {
--brand-50: #F6F4FB;
--brand-100: #EDE9F7;
--brand-200: #D8CDEF;
--brand-300: #BCA7E7;
--brand-400: #9877da;
--brand-500: #794FCF;
--brand-600: #6334C0;
--brand-700: #532CA0;
--brand-800: #422380;
--brand-900: #321D5D;
--brand-950: #20123A;
--brand: #9877da;
--brand-ink: #000000;
}Colors that work with #9877da
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #9877da
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #B9DA77 | Directly opposite — maximum tension | |
| Analogous left | #7788DA | Neighbour, quieter | |
| Analogous right | #CA77DA | Neighbour, quieter | |
| Split-complement 1 | #DACA77 | Contrast without the clash | |
| Split-complement 2 | #88DA77 | Contrast without the clash | |
| Triadic 1 | #DA9877 | Even thirds — balanced and loud | |
| Triadic 2 | #77DA98 | Even thirds — balanced and loud | |
| Tetradic | #DA7788 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#9877da text on a black background
contrast 5.99:1
#9877da text on a white background
contrast 3.51:1
CSS3 live lab
The quick brown fox
color: #9877da;
background-color: #9877da;
Glowing headline
text-shadow: 2px 2px 8px #9877da;
Soft neon halo
text-shadow: 0 0 14px rgba(152, 119, 218, 0.45);
box-shadow: 0 12px 32px -8px rgba(152, 119, 218, 0.45);
border: 3px solid #9877da; background: linear-gradient(135deg, #9877da, #DA77DA);
Monochromatic scale
Palettes built from #9877da
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.
Closest color with a full write-up: Periwinkle Blue (#8f99fb) — ΔE2000 12.3 away, with its history, psychology and brand usage.
#9877da in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#9877da, answered
What color is #9877da?
#9877da is a light vivid violet, closest to Medium Purple (ΔE2000 2.3). It sits at 260° on the hue wheel with 57% saturation and 66% lightness, which reads as cool.
What is the RGB value of #9877da?
rgb(152, 119, 218) — 152 red, 119 green and 218 blue out of 255, or 59.6% / 46.7% / 85.5% by channel.
Is #9877da a light or a dark color?
It is a mid-tone. Relative luminance is 0.2493 and perceived brightness is 56%, so black text on it reaches 5.99:1.
Should I use black or white text on #9877da?
Black. It scores 5.99:1 against #9877da, versus 3.51:1 for white — AA at any size.
What is the complementary color of #9877da?
#B9DA77 sits directly opposite on the wheel. Softer options are the split-complements #DACA77 and #88DA77, which give the same contrast with far less vibration.
What colors go well with #9877da?
For interface work: #F6F4FA as the surface, #CFC0ED for borders, #654B9B for secondary text, #9AA428 as an accent and #341B64 for hover and pressed states. For a palette, the analogous pair #7788DA and #CA77DA stays calm, while #B9DA77 is the loudest partner.
What is #9877da in CMYK for printing?
cmyk(30%, 45%, 0%, 15%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #9877da warm or cool?
Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BC77DA; nudged cooler, #7579DC.