Skip to content

#ba4ff7

a balanced, electric violet · cool · closest name: Medium Orchid

RGB
186, 79, 247
HSL
278°, 91%, 64%
CMYK
25, 68, 0, 3
Luminance
0.2275

At a glance

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

Hex
#ba4ff7
Hue
278°
violet
Saturation
91%
electric
Lightness
64%
balanced
Brightness
97%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2275
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.55:1
Closest name
Medium Orchid
ΔE2000 5.4
Where it sits
Hue278° of 360°
Saturation91%
Lightness64%
Temperature
Warm ← → Cool62% cool

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

Every format

HEX#ba4ff7
RGBrgb(186, 79, 247)
HSLhsl(278, 91%, 64%)
CMYKcmyk(25%, 68%, 0%, 3%)
LABlab(54.8 69.0 -65.8)
LCHlch(54.8 95.3 316.3)
OKLCHoklch(0.641 0.244 310.5)
Decimal12210167
Display P3color(display-p3 0.729 0.310 0.969)

Copy-ready code

/* CSS */
color: #ba4ff7;
background-color: #ba4ff7;
/* Tailwind (arbitrary) */
class="text-[#ba4ff7] bg-[#ba4ff7]"
/* SCSS */
$brand: #ba4ff7;
/* SwiftUI */
Color(red: 0.729, green: 0.310, blue: 0.969)
/* Android */
Color.parseColor("#ba4ff7")
/* Flutter */
Color(0xFFBA4FF7)
/* Python / OpenCV (BGR) */
(247, 79, 186)

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 #ba4ff7 · 5.55:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.78:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.55:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ba4ff7 as text scores 3.78:1 on white and 5.55:1 on black.

Accessibility — WCAG contrast

Aa
#ba4ff7 on white: 3.78:1
AA ✗ fail · AA-large · AAA
Aa
#ba4ff7 on black: 5.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007EFC
deuteranopia · #3585F3
tritanopia · #B2739D

Color scale — 50 to 950

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

#F9F2FD
#F3E4FB
#E5C3F9
#D594FA
#ba4ff7
#AB28F5
#990BEA
#7F09C3
#66079C
#4B0A71
#2F0646
Base = 400Lightest = 50 · #F9F2FDDarkest = 950 · #2F0646
:root {
  --brand-50: #F9F2FD;
  --brand-100: #F3E4FB;
  --brand-200: #E5C3F9;
  --brand-300: #D594FA;
  --brand-400: #ba4ff7;
  --brand-500: #AB28F5;
  --brand-600: #990BEA;
  --brand-700: #7F09C3;
  --brand-800: #66079C;
  --brand-900: #4B0A71;
  --brand-950: #2F0646;
  --brand: #ba4ff7;
  --brand-ink: #000000;
}

Colors that work with #ba4ff7

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#F8F4FA
Tinted page background
Border#DCC0ED
Hairlines and dividers
Muted text#7E4B9B
Captions on the surface
Accent#7CC804
Second voice, not a rival
Dark variant#50067A
Hover, pressed, headers
Light variant#F5E7FE
Selected rows, tints
Dark surface#1E1424
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 #ba4ff7

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#8CF74F
Analogous left#664FF7
Analogous right#F74FE0
Split-complement 1#E0F74F
Split-complement 2#4FF766
Triadic 1#F7BA4F
Triadic 2#4FF7BA
Tetradic#F7664F

RGB percentages

Red72.9%
Green31.0%
Blue96.9%

CMYK percentages

Cyan24.7%
Magenta68.0%
Yellow0.0%
Key (black)3.1%

Color previews

#ba4ff7 text on a black background

contrast 5.55:1

Card sample

#ba4ff7 text on a white background

contrast 3.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 79, 247, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 79, 247, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba4ff7;
background: linear-gradient(135deg, #ba4ff7, #F74FC4);

Monochromatic scale

Palettes built from #ba4ff7

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.

#ba4ff7 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ba4ff7, answered

What color is #ba4ff7?

#ba4ff7 is a balanced electric violet, closest to Medium Orchid (ΔE2000 5.4). It sits at 278° on the hue wheel with 91% saturation and 64% lightness, which reads as cool.

What is the RGB value of #ba4ff7?

rgb(186, 79, 247) — 186 red, 79 green and 247 blue out of 255, or 72.9% / 31% / 96.9% by channel.

Is #ba4ff7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2275 and perceived brightness is 57%, so black text on it reaches 5.55:1.

Should I use black or white text on #ba4ff7?

Black. It scores 5.55:1 against #ba4ff7, versus 3.78:1 for white — AA at any size.

What is the complementary color of #ba4ff7?

#8CF74F sits directly opposite on the wheel. Softer options are the split-complements #E0F74F and #4FF766, which give the same contrast with far less vibration.

What colors go well with #ba4ff7?

For interface work: #F8F4FA as the surface, #DCC0ED for borders, #7E4B9B for secondary text, #7CC804 as an accent and #50067A for hover and pressed states. For a palette, the analogous pair #664FF7 and #F74FE0 stays calm, while #8CF74F is the loudest partner.

What is #ba4ff7 in CMYK for printing?

cmyk(25%, 68%, 0%, 3%). 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 #ba4ff7 warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F74FF6; nudged cooler, #7B4DF9.

Work with #ba4ff7 in the Color Lab