#ba6af4
a light, electric violet · cool · closest name: Medium Orchid
At a glance
Every number on this page in one read: what #ba6af4 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 | #ba6af4 |
| RGB | rgb(186, 106, 244) |
| HSL | hsl(275, 86%, 69%) |
| CMYK | cmyk(24%, 57%, 0%, 4%) |
| LAB | lab(59.2 55.7 -57.0) |
| LCH | lch(59.2 79.8 314.3) |
| OKLCH | oklch(0.672 0.205 308.6) |
| Decimal | 12217076 |
| Display P3 | color(display-p3 0.729 0.416 0.957) |
Copy-ready code
/* CSS */
color: #ba6af4;
background-color: #ba6af4;
/* Tailwind (arbitrary) */
class="text-[#ba6af4] bg-[#ba6af4]"
/* SCSS */
$brand: #ba6af4;
/* SwiftUI */
Color(red: 0.729, green: 0.416, blue: 0.957)
/* Android */
Color.parseColor("#ba6af4")
/* Flutter */
Color(0xFFBA6AF4)
/* Python / OpenCV (BGR) */
(244, 106, 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. #ba6af4 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: #F8F2FD;
--brand-100: #F1E5FA;
--brand-200: #E2C5F7;
--brand-300: #CF96F7;
--brand-400: #ba6af4;
--brand-500: #9E2EF0;
--brand-600: #8B11E4;
--brand-700: #740EBE;
--brand-800: #5D0B98;
--brand-900: #450D6E;
--brand-950: #2B0845;
--brand: #ba6af4;
--brand-ink: #000000;
}Colors that work with #ba6af4
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 #ba6af4
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 | #A4F46A | Directly opposite — maximum tension | |
| Analogous left | #756AF4 | Neighbour, quieter | |
| Analogous right | #F46AE9 | Neighbour, quieter | |
| Split-complement 1 | #E9F46A | Contrast without the clash | |
| Split-complement 2 | #6AF475 | Contrast without the clash | |
| Triadic 1 | #F4BA6A | Even thirds — balanced and loud | |
| Triadic 2 | #6AF4BA | Even thirds — balanced and loud | |
| Tetradic | #F4756A | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ba6af4 text on a black background
contrast 6.46:1
#ba6af4 text on a white background
contrast 3.25:1
CSS3 live lab
The quick brown fox
color: #ba6af4;
background-color: #ba6af4;
Glowing headline
text-shadow: 2px 2px 8px #ba6af4;
Soft neon halo
text-shadow: 0 0 14px rgba(186, 106, 244, 0.45);
box-shadow: 0 12px 32px -8px rgba(186, 106, 244, 0.45);
border: 3px solid #ba6af4; background: linear-gradient(135deg, #ba6af4, #F46AD2);
Monochromatic scale
Palettes built from #ba6af4
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 9.4 away, with its history, psychology and brand usage.
#ba6af4 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#ba6af4, answered
What color is #ba6af4?
#ba6af4 is a light electric violet, closest to Medium Orchid (ΔE2000 6.9). It sits at 275° on the hue wheel with 86% saturation and 69% lightness, which reads as cool.
What is the RGB value of #ba6af4?
rgb(186, 106, 244) — 186 red, 106 green and 244 blue out of 255, or 72.9% / 41.6% / 95.7% by channel.
Is #ba6af4 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2728 and perceived brightness is 60%, so black text on it reaches 6.46:1.
Should I use black or white text on #ba6af4?
Black. It scores 6.46:1 against #ba6af4, versus 3.25:1 for white — AA at any size.
What is the complementary color of #ba6af4?
#A4F46A sits directly opposite on the wheel. Softer options are the split-complements #E9F46A and #6AF475, which give the same contrast with far less vibration.
What colors go well with #ba6af4?
For interface work: #F8F4FA as the surface, #DAC0ED for borders, #794B9B for secondary text, #86C20A as an accent and #490977 for hover and pressed states. For a palette, the analogous pair #756AF4 and #F46AE9 stays calm, while #A4F46A is the loudest partner.
What is #ba6af4 in CMYK for printing?
cmyk(24%, 57%, 0%, 4%). 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 #ba6af4 warm or cool?
Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #ED6AF4; nudged cooler, #8668F6.