#ba7ecb
a balanced, soft violet · neutral · closest name: Orchid
At a glance
Every number on this page in one read: what #ba7ecb is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #ba7ecb |
| RGB | rgb(186, 126, 203) |
| HSL | hsl(287, 43%, 65%) |
| CMYK | cmyk(8%, 38%, 0%, 20%) |
| LAB | lab(61.4 36.4 -30.7) |
| LCH | lch(61.4 47.7 319.8) |
| OKLCH | oklch(0.682 0.128 318.6) |
| Decimal | 12222155 |
| Display P3 | color(display-p3 0.729 0.494 0.796) |
Copy-ready code
/* CSS */
color: #ba7ecb;
background-color: #ba7ecb;
/* Tailwind (arbitrary) */
class="text-[#ba7ecb] bg-[#ba7ecb]"
/* SCSS */
$brand: #ba7ecb;
/* SwiftUI */
Color(red: 0.729, green: 0.494, blue: 0.796)
/* Android */
Color.parseColor("#ba7ecb")
/* Flutter */
Color(0xFFBA7ECB)
/* Python / OpenCV (BGR) */
(203, 126, 186)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. #ba7ecb 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: #F9F5FA;
--brand-100: #F3EBF5;
--brand-200: #E5D1EA;
--brand-300: #D4AFDF;
--brand-400: #ba7ecb;
--brand-500: #AA5FBE;
--brand-600: #9846AE;
--brand-700: #7E3B91;
--brand-800: #652F74;
--brand-900: #4B2555;
--brand-950: #2F1735;
--brand: #ba7ecb;
--brand-ink: #000000;
}Colors that work with #ba7ecb
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 #ba7ecb
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠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 | #8FCB7E | Directly opposite — maximum tension | |
| Analogous left | #947ECB | Neighbour, quieter | |
| Analogous right | #CB7EB5 | Neighbour, quieter | |
| Split-complement 1 | #B5CB7E | Contrast without the clash | |
| Split-complement 2 | #7ECB94 | Contrast without the clash | |
| Triadic 1 | #CBBA7E | Even thirds — balanced and loud | |
| Triadic 2 | #7ECBBA | Even thirds — balanced and loud | |
| Tetradic | #CB947E | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ba7ecb text on a black background
contrast 6.93:1
#ba7ecb text on a white background
contrast 3.03:1
CSS3 live lab
The quick brown fox
color: #ba7ecb;
background-color: #ba7ecb;
Glowing headline
text-shadow: 2px 2px 8px #ba7ecb;
Soft neon halo
text-shadow: 0 0 14px rgba(186, 126, 203, 0.45);
box-shadow: 0 12px 32px -8px rgba(186, 126, 203, 0.45);
border: 3px solid #ba7ecb; background: linear-gradient(135deg, #ba7ecb, #CB7EA9);
Monochromatic scale
Palettes built from #ba7ecb
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: Orchid (#da70d6) — ΔE2000 6.5 away, with its history, psychology and brand usage.
#ba7ecb 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.
#ba7ecb, answered
What color is #ba7ecb?
#ba7ecb is a balanced soft violet, closest to Orchid (ΔE2000 6.5). It sits at 287° on the hue wheel with 43% saturation and 65% lightness, which reads as neutral.
What is the RGB value of #ba7ecb?
rgb(186, 126, 203) — 186 red, 126 green and 203 blue out of 255, or 72.9% / 49.4% / 79.6% by channel.
Is #ba7ecb a light or a dark color?
It is a mid-tone. Relative luminance is 0.2967 and perceived brightness is 61%, so black text on it reaches 6.93:1.
Should I use black or white text on #ba7ecb?
Black. It scores 6.93:1 against #ba7ecb, versus 3.03:1 for white — AA at any size.
What is the complementary color of #ba7ecb?
#8FCB7E sits directly opposite on the wheel. Softer options are the split-complements #B5CB7E and #7ECB94, which give the same contrast with far less vibration.
What colors go well with #ba7ecb?
For interface work: #F9F4FA as the surface, #E0C5E8 for borders, #894B9B for secondary text, #639636 as an accent and #4F255B for hover and pressed states. For a palette, the analogous pair #947ECB and #CB7EB5 stays calm, while #8FCB7E is the loudest partner.
What is #ba7ecb in CMYK for printing?
cmyk(8%, 38%, 0%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #ba7ecb warm or cool?
Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CB7EC0; nudged cooler, #9D7CCD.